public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/86452] ICE in force_decl_die, at dwarf2out.c:25922 with -g1 and -flto
       [not found] <bug-86452-4@http.gcc.gnu.org/bugzilla/>
@ 2018-07-10  9:58 ` rguenth at gcc dot gnu.org
  0 siblings, 0 replies; only message in thread
From: rguenth at gcc dot gnu.org @ 2018-07-10  9:58 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="UTF-8", Size: 185303 bytes --]

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Well, what flags do you use? (-g1?)  Any CUs with differing flags?

Nothing to do w/o a testcase...
>From gcc-bugs-return-609505-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 10:00:41 2018
Return-Path: <gcc-bugs-return-609505-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 124532 invoked by alias); 10 Jul 2018 10:00:40 -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 124386 invoked by uid 48); 10 Jul 2018 10:00:35 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/86277] Presence of optional arguments not recognized for zero length arrays
Date: Tue, 10 Jul 2018 10:00: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: 8.1.0
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: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority bug_status cf_reconfirmed_on target_milestone everconfirmed
Message-ID: <bug-86277-4-7gh4uUhZjL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86277-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86277-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: 2018-07/txt/msg00610.txt.bz2
Content-length: 628

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2018-07-10
   Target Milestone|---                         |9.0
     Ever confirmed|0                           |1

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Confirmed from 4.8.5 up to trunk (9.0).
>From gcc-bugs-return-609506-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 10:35:00 2018
Return-Path: <gcc-bugs-return-609506-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 19414 invoked by alias); 10 Jul 2018 10:35:00 -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 19358 invoked by uid 48); 10 Jul 2018 10:34:56 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/86452] ICE in force_decl_die, at dwarf2out.c:25922 with -g1 and -flto
Date: Tue, 10 Jul 2018 10:35: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: 9.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: WAITING
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-86452-4-yb0RmeMwHn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86452-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86452-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: 2018-07/txt/msg00611.txt.bz2
Content-length: 431

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

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #1)
> Well, what flags do you use? (-g1?)  Any CUs with differing flags?

Yes, it's w/ -g1. I was also reproduce that on libxul.so with -g1. So that I
can confirm that all CUs have same debug info flags.

> 
> Nothing to do w/o a testcase...

That would be fun :)
>From gcc-bugs-return-609507-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 10:38:24 2018
Return-Path: <gcc-bugs-return-609507-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 116389 invoked by alias); 10 Jul 2018 10:38: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 88532 invoked by uid 55); 10 Jul 2018 10:38:02 -0000
From: "rguenther at suse dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/86452] ICE in force_decl_die, at dwarf2out.c:25922 with -g1 and -flto
Date: Tue, 10 Jul 2018 10:38: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: 9.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenther at suse dot de
X-Bugzilla-Status: WAITING
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-86452-4-7m8wpHCG5L@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86452-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86452-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: 2018-07/txt/msg00612.txt.bz2
Content-length: 1006

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

--- Comment #3 from rguenther at suse dot de <rguenther at suse dot de> ---
On Tue, 10 Jul 2018, marxin at gcc dot gnu.org wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86452
> 
> --- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
> (In reply to Richard Biener from comment #1)
> > Well, what flags do you use? (-g1?)  Any CUs with differing flags?
> 
> Yes, it's w/ -g1. I was also reproduce that on libxul.so with -g1. So that I
> can confirm that all CUs have same debug info flags.
> 
> > 
> > Nothing to do w/o a testcase...
> 
> That would be fun :)

Might be as easy as make -k check 
RUNTESTFLAGS="--target_board=unix/-flto/-g1" ...

Similar "interesting" bugs should be turned up when compiling with -g0
and linking with -g1+ (not easy to retrofit in the testsuite harness
if you don't do sth like darwin/mingw and reset debug_info_level
around LTO-out)

Separate bug for each backtrace please.
>From gcc-bugs-return-609508-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 11:19:17 2018
Return-Path: <gcc-bugs-return-609508-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 78168 invoked by alias); 10 Jul 2018 11:18:55 -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 49799 invoked by uid 48); 10 Jul 2018 11:16:16 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/86454] New: [8/9 Regression] error: type variant differs by TYPE_PACKED in free_lang_data since r255469
Date: Tue, 10 Jul 2018 11:18:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: lto
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: ice-on-valid-code
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: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc target_milestone
Message-ID: <bug-86454-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: 2018-07/txt/msg00613.txt.bz2
Content-length: 3218

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

            Bug ID: 86454
           Summary: [8/9 Regression] error: type variant differs by
                    TYPE_PACKED in free_lang_data since r255469
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: marxin at gcc dot gnu.org, rguenth at gcc dot gnu.org
  Target Milestone: ---

From the mentioned revision we ICE on:

$ cat ice1.ii
struct {
  int *__attribute__((aligned, packed)) a;
} b;

$ g++ -w -c -Wno-abi -c ice1.ii -Werror -flto
ice1.ii:3:4: error: type variant differs by TYPE_PACKED
 } b;
    ^
 <pointer_type 0x7ffff68fb000
    type <integer_type 0x7ffff67c05e8 int public type_6 SI
        size <integer_cst 0x7ffff67c30c0 constant 32>
        unit-size <integer_cst 0x7ffff67c30d8 constant 4>
        align:32 warn_if_not_align:0 symtab:0 alias-set 2 canonical-type
0x7ffff67c05e8 precision:32 min <integer_cst 0x7ffff67c3078 -2147483648> max
<integer_cst 0x7ffff67c3090 2147483647>
        pointer_to_this <pointer_type 0x7ffff67c89d8>>
    unsigned DI
    size <integer_cst 0x7ffff67a2e70 type <integer_type 0x7ffff67c00a8
bitsizetype> constant 64>
    unit-size <integer_cst 0x7ffff67a2e88 type <integer_type 0x7ffff67c0000
sizetype> constant 8>
    user align:128 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x7ffff67c89d8
    attributes <tree_list 0x7ffff68f4398
        purpose <identifier_node 0x7ffff68f6940 aligned
            normal local bindings <(nil)>>>>
 <pointer_type 0x7ffff68fb0a8
    type <integer_type 0x7ffff67c05e8 int public type_6 SI
        size <integer_cst 0x7ffff67c30c0 constant 32>
        unit-size <integer_cst 0x7ffff67c30d8 constant 4>
        align:32 warn_if_not_align:0 symtab:0 alias-set 2 canonical-type
0x7ffff67c05e8 precision:32 min <integer_cst 0x7ffff67c3078 -2147483648> max
<integer_cst 0x7ffff67c3090 2147483647>
        pointer_to_this <pointer_type 0x7ffff67c89d8>>
    unsigned packed DI
    size <integer_cst 0x7ffff67a2e70 type <integer_type 0x7ffff67c00a8
bitsizetype> constant 64>
    unit-size <integer_cst 0x7ffff67a2e88 type <integer_type 0x7ffff67c0000
sizetype> constant 8>
    user align:128 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x7ffff67c89d8
    attributes <tree_list 0x7ffff68f4398
        purpose <identifier_node 0x7ffff68f6940 aligned
            normal local bindings <(nil)>>>>
during IPA pass: *free_lang_data
ice1.ii:3:4: internal compiler error: verify_type failed
0x1151df2 verify_type(tree_node const*)
        /home/marxin/Programming/gcc/gcc/tree.c:13960
0x1153589 free_lang_data_in_cgraph
        /home/marxin/Programming/gcc/gcc/tree.c:5836
0x1153589 free_lang_data
        /home/marxin/Programming/gcc/gcc/tree.c:5865
0x1153589 execute
        /home/marxin/Programming/gcc/gcc/tree.c:5918
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
>From gcc-bugs-return-609509-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 11:19:53 2018
Return-Path: <gcc-bugs-return-609509-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 82121 invoked by alias); 10 Jul 2018 11:19:53 -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 82028 invoked by uid 48); 10 Jul 2018 11:19:46 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/86455] New: var-tracking mishandled pre_dec
Date: Tue, 10 Jul 2018 11:19:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: debug
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vries at gcc dot gnu.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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-86455-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: 2018-07/txt/msg00614.txt.bz2
Content-length: 7740

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

            Bug ID: 86455
           Summary: var-tracking mishandled pre_dec
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

With the experimental patch "[debug] Add -fkeep-vars-live" (PR78685 comment
12), there are two regressions of "Og -fkeep-vars-live" compared to "Og":
...
FAIL: gcc.dg/guality/csttest.c  -Og -fkeep-vars-live -DPREVENT_OPTIMIZATION  \
      line 29 n == -(0x17ULL << 50)
FAIL: gcc.dg/guality/csttest.c  -Og -fkeep-vars-live -DPREVENT_OPTIMIZATION  \
      line 55 j == -(0x17ULL << 31)
...

I've minimized one of the failures to:
...
/* PR debug/49676 */
/* { dg-do run { target lp64 } } */
/* { dg-options "-g -fno-ipa-icf" } */

volatile int v;

__attribute__((noinline, noclone))
unsigned long long
foo (unsigned long long x)
{
  unsigned long long c = x * (0x1ULL << 35);
  unsigned long long d = x * (0x17ULL << 15);
  unsigned long long e = x * (0x17ULL << 50);
  unsigned long long f = x * (0x37ULL << 31);
  unsigned long long g = x * (0x37ULL << 50);
  unsigned long long h = x * (0x1efULL << 33);
  unsigned long long i = x * (0x1efULL << 50);
  unsigned long long j = x * -(0x17ULL << 31);
  unsigned long long k = x * -(0x7ULL << 33);
  unsigned long long l = x * -(0x1ULL << 35);
  unsigned long long m = x * -(0x17ULL << 15);
  unsigned long long n = x * -(0x17ULL << 50);
  unsigned long long o = x * -(0x37ULL << 31);
  unsigned long long p = x * -(0x37ULL << 50);  /* { dg-final { gdb-test .+3
"p" "-(0x37ULL << 50)" } } */
  unsigned long long q = x * -(0x1efULL << 33);
  unsigned long long r = x * -(0x1efULL << 50);
  v++;
  return x;
}

__attribute__((noinline, noclone))
unsigned long long
bar (unsigned long long x)
{
  v++;
  return x;
}

int
main ()
{
  return foo (1) + bar (256) - 257;
}
...

The problem can be observed in the assembly:
...
        ## First, the imulq calculates variable p in %rcx.
        imulq   %rax, %rcx
        ## Immediately after that we save that value to stack at %rsp-8.
        movq    %rcx, -8(%rsp)
.LVL20:
        ## We let the debugger known that we can find p in %rcx.
        # DEBUG p => cx
        # csttest.c:25:3
        .loc 1 25 3 is_stmt 1
        # csttest.c:25:22
        .loc 1 25 22 is_stmt 0
        ## Here we reuse %rcx, so it no longer contains p.
        movabsq $-4252017623040, %rcx
.LVL21:
        ## And here we let the debugger know that p can be found at the stack
        ## location %rsp, which is incorrect, because it's at %rsp-8.
        # DEBUG p => [sp]
...

The problem is introduced by var-tracking.

Before var-tracking, we have:
...
(insn 126 71 127 2 (set (mem/c:DI (plus:DI (reg/f:DI 7 sp)
                (const_int -8 [0xfffffffffffffff8])) [2 %sfp+-8 S8 A64])
        (reg:DI 2 cx [127])) "csttest.c":24 85 {*movdi_internal}
     (expr_list:REG_DEAD (reg:DI 2 cx [127])
        (nil)))
(note 127 126 72 2 NOTE_INSN_DELETED)
(debug_insn 72 127 73 2 (var_location:DI p (mem/c:DI (plus:DI (reg/f:DI 7 sp)
            (const_int -8 [0xfffffffffffffff8])) [2 %sfp+-8 S8 A64]))
"csttest.c":24 -1
     (nil))
...
which is correct.

After var-tracking, we have:
...
(insn 126 71 127 2 (set (mem/c:DI (plus:DI (reg/f:DI 7 sp)
                (const_int -8 [0xfffffffffffffff8])) [2 %sfp+-8 S8 A64])
        (reg:DI 2 cx [127])) "csttest.c":24 85 {*movdi_internal}
     (expr_list:REG_DEAD (reg:DI 2 cx [127])
        (nil)))
(note 127 126 188 2 NOTE_INSN_DELETED)
(note 188 127 164 2 (var_location p (reg:DI 2 cx [127]))
NOTE_INSN_VAR_LOCATION)
(note 164 188 74 2 csttest.c:25 NOTE_INSN_BEGIN_STMT)
(insn 74 164 189 2 (set (reg:DI 2 cx [128])
        (const_int -4252017623040 [0xfffffc2200000000])) "csttest.c":25 85
{*movdi_internal}
     (expr_list:REG_EQUIV (const_int -4252017623040 [0xfffffc2200000000])
        (nil)))
(note 189 74 75 2 (var_location p (mem/c:DI (reg/f:DI 7 sp) [2 %sfp+-8 S8
A64])) NOTE_INSN_VAR_LOCATION)
... 
and we find the wrong location for p in note 189.

I've tracked this down to how and where insns are parsed into micro-ops.

The first insn:
...
(insn/f 132 4 133 2 (set (mem:DI (pre_dec:DI (reg/f:DI 7 sp)) [0  S8 A8])
        (reg:DI 44 r15)) "csttest.c":10 61 {*pushdi2_rex64}
     (expr_list:REG_DEAD (reg:DI 44 r15)
        (nil)))
...
is parsed into these micro-ops:
...
bb 2 op 0 insn 132 MO_ADJUST (set (mem:DI (pre_dec:DI (reg/f:DI 7 sp)) [0  S8
A8])
        (reg:DI 44 r15))
bb 2 op 1 insn 132 MO_VAL_USE (concat/v:DI (value/u:DI 8:8
@0x4c59428/0x4c89500)
        (reg:DI 44 r15))
bb 2 op 2 insn 132 MO_VAL_SET (concat/u:DI (value/u:DI 7:4306
@0x4c59410/0x4c894d0)
        (set (reg/f:DI 7 sp)
            (plus:DI (reg/f:DI 16 argp)
                (const_int -24 [0xffffffffffffffe8]))))
bb 2 op 3 insn 132 MO_VAL_SET (concat/u:DI (concat:DI (value/u:DI 8:8
@0x4c59428/0x4c89500)
            (mem:DI (value/u:DI 7:4306 @0x4c59410/0x4c894d0) [0  S8 A8]))
        (mem:DI (plus:DI (reg/f:DI 16 argp)
                (const_int -24 [0xffffffffffffffe8])) [0  S8 A8]))
...
and then rewritten into:
...
(insn/f 132 4 133 2 (parallel [
            (set (mem:DI (plus:DI (reg/f:DI 16 argp)
                        (const_int -24 [0xffffffffffffffe8])) [0  S8 A8])
                (reg:DI 44 r15))
            (set (reg/f:DI 7 sp)
                (plus:DI (reg/f:DI 16 argp)
                    (const_int -24 [0xffffffffffffffe8])))
        ]) "csttest.c":10 61 {*pushdi2_rex64}
     (expr_list:REG_DEAD (reg:DI 44 r15)
        (nil)))
...
This is incorrect, the offset should be -16 (8 for the pre_dec:DI, and 8 for
INCOMING_FRAME_SP_OFFSET), not -24.

AFAIU, the problem originates here in vt_initialize:
...
                  if (!frame_pointer_needed)
                    {
                      insn_stack_adjust_offset_pre_post (insn, &pre, &post);
                      if (pre)
                        {
                          micro_operation mo;
                          mo.type = MO_ADJUST;
                          mo.u.adjust = pre;
                          mo.insn = insn;
                          if (dump_file && (dump_flags & TDF_DETAILS))
                            log_op_type (PATTERN (insn), bb, insn,
                                         MO_ADJUST, dump_file);
                          VTI (bb)->mos.safe_push (mo);
                          VTI (bb)->out.stack_adjust += pre;
                        }
                    }

                  cselib_hook_called = false;
                  adjust_insn (bb, insn);
...

We start out with a 'VTI (bb)->out.stack_adjust' of 8 (equal to
INCOMING_FRAME_SP_OFFSET).

Then we process insn 132, and find a pre of 8 (due to the pre_dec:DI) and add
it, setting the stack_adjust to 16:
...
                          VTI (bb)->out.stack_adjust += pre;
...

Finally we call adjust_insn, where the stack_adjust is used in adjust_mems to
generate an sp equivalent, resulting in argp - 16:
...
      if (loc == stack_pointer_rtx
          && !frame_pointer_needed
          && cfa_base_rtx)
        return compute_cfa_pointer (amd->stack_adjust);
...

However, also pre_dec is handled in adjust_mems:
...
    case PRE_DEC:
      size = GET_MODE_SIZE (amd->mem_mode);
      addr = plus_constant (GET_MODE (loc), XEXP (loc, 0),
                            GET_CODE (loc) == PRE_INC ? size : -size);
      /* FALLTHRU */
...
so pre_dec is counted twice, once in the stack_adjust, and once as operator and
we end up with offset -24 instead of -16.
>From gcc-bugs-return-609511-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 11:22:48 2018
Return-Path: <gcc-bugs-return-609511-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 98003 invoked by alias); 10 Jul 2018 11:22:48 -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 97277 invoked by uid 48); 10 Jul 2018 11:22:42 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/86454] New: [8/9 Regression] error: type variant differs by TYPE_PACKED in free_lang_data since r255469
Date: Tue, 10 Jul 2018 11:22:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: lto
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: DUPLICATE
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_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc target_milestone resolution
Message-ID: <bug-86454-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: 2018-07/txt/msg00616.txt.bz2
Content-length: 3412

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

            Bug ID: 86454
           Summary: [8/9 Regression] error: type variant differs by
                    TYPE_PACKED in free_lang_data since r255469
           Product: gcc
           Version: 9.0
            Status: RESOLVED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: marxin at gcc dot gnu.org, rguenth at gcc dot gnu.org
  Target Milestone: ---
            Status: RESOLVED
        Resolution: DUPLICATE

From the mentioned revision we ICE on:

$ cat ice1.ii
struct {
  int *__attribute__((aligned, packed)) a;
} b;

$ g++ -w -c -Wno-abi -c ice1.ii -Werror -flto
ice1.ii:3:4: error: type variant differs by TYPE_PACKED
 } b;
    ^
 <pointer_type 0x7ffff68fb000
    type <integer_type 0x7ffff67c05e8 int public type_6 SI
        size <integer_cst 0x7ffff67c30c0 constant 32>
        unit-size <integer_cst 0x7ffff67c30d8 constant 4>
        align:32 warn_if_not_align:0 symtab:0 alias-set 2 canonical-type
0x7ffff67c05e8 precision:32 min <integer_cst 0x7ffff67c3078 -2147483648> max
<integer_cst 0x7ffff67c3090 2147483647>
        pointer_to_this <pointer_type 0x7ffff67c89d8>>
    unsigned DI
    size <integer_cst 0x7ffff67a2e70 type <integer_type 0x7ffff67c00a8
bitsizetype> constant 64>
    unit-size <integer_cst 0x7ffff67a2e88 type <integer_type 0x7ffff67c0000
sizetype> constant 8>
    user align:128 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x7ffff67c89d8
    attributes <tree_list 0x7ffff68f4398
        purpose <identifier_node 0x7ffff68f6940 aligned
            normal local bindings <(nil)>>>>
 <pointer_type 0x7ffff68fb0a8
    type <integer_type 0x7ffff67c05e8 int public type_6 SI
        size <integer_cst 0x7ffff67c30c0 constant 32>
        unit-size <integer_cst 0x7ffff67c30d8 constant 4>
        align:32 warn_if_not_align:0 symtab:0 alias-set 2 canonical-type
0x7ffff67c05e8 precision:32 min <integer_cst 0x7ffff67c3078 -2147483648> max
<integer_cst 0x7ffff67c3090 2147483647>
        pointer_to_this <pointer_type 0x7ffff67c89d8>>
    unsigned packed DI
    size <integer_cst 0x7ffff67a2e70 type <integer_type 0x7ffff67c00a8
bitsizetype> constant 64>
    unit-size <integer_cst 0x7ffff67a2e88 type <integer_type 0x7ffff67c0000
sizetype> constant 8>
    user align:128 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x7ffff67c89d8
    attributes <tree_list 0x7ffff68f4398
        purpose <identifier_node 0x7ffff68f6940 aligned
            normal local bindings <(nil)>>>>
during IPA pass: *free_lang_data
ice1.ii:3:4: internal compiler error: verify_type failed
0x1151df2 verify_type(tree_node const*)
        /home/marxin/Programming/gcc/gcc/tree.c:13960
0x1153589 free_lang_data_in_cgraph
        /home/marxin/Programming/gcc/gcc/tree.c:5836
0x1153589 free_lang_data
        /home/marxin/Programming/gcc/gcc/tree.c:5865
0x1153589 execute
        /home/marxin/Programming/gcc/gcc/tree.c:5918
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Dup.

*** This bug has been marked as a duplicate of bug 86453 ***
>From gcc-bugs-return-609510-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 11:22:09 2018
Return-Path: <gcc-bugs-return-609510-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 93158 invoked by alias); 10 Jul 2018 11:22:08 -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 92475 invoked by uid 48); 10 Jul 2018 11:21:48 -0000
From: "iains at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81685] [7/8/9 Regression] FAIL: g++.dg/debug/dwarf2/inline-ns-2.C  -std=gnu++* (internal compiler error) on darwin
Date: Tue, 10 Jul 2018 11:22: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: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: iains at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: iains at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to attachments.created
Message-ID: <bug-81685-4-IqgjT3jf0h@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81685-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81685-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: 2018-07/txt/msg00615.txt.bz2
Content-length: 922

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |iains at gcc dot gnu.org

--- Comment #3 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Same failure for

gcc.dg/debug/dwarf2/pr82718-1.c
gcc.dg/pr86064.c
g++.dg/debug/dwarf2/pr85302.C

--- Comment #4 from Iain Sandoe <iains at gcc dot gnu.org> ---
Created attachment 44371
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44371&action=edit
add DWARF 5 section names for Darwin, update pub sects.

synced to the section names used by LLVM (as far as those are
published/relevant for the current set used here).  The fix is in the 'obvious'
category.
>From gcc-bugs-return-609512-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 11:22:48 2018
Return-Path: <gcc-bugs-return-609512-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 98050 invoked by alias); 10 Jul 2018 11:22:48 -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 97426 invoked by uid 48); 10 Jul 2018 11:22:43 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/86453] New: [8/9 Regression] error: type variant differs by TYPE_PACKED in free_lang_data since r255469
Date: Tue, 10 Jul 2018 11:29:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: lto
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: ice-on-valid-code
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: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc target_milestone
Message-ID: <bug-86453-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: 2018-07/txt/msg00617.txt.bz2
Content-length: 3351

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

            Bug ID: 86453
           Summary: [8/9 Regression] error: type variant differs by
                    TYPE_PACKED in free_lang_data since r255469
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: marxin at gcc dot gnu.org, rguenth at gcc dot gnu.org
  Target Milestone: ---

From the mentioned revision we ICE on:

$ cat ice1.ii
struct {
  int *__attribute__((aligned, packed)) a;
} b;

$ g++ -w -c -Wno-abi -c ice1.ii -Werror -flto
ice1.ii:3:4: error: type variant differs by TYPE_PACKED
 } b;
    ^
 <pointer_type 0x7ffff68fb000
    type <integer_type 0x7ffff67c05e8 int public type_6 SI
        size <integer_cst 0x7ffff67c30c0 constant 32>
        unit-size <integer_cst 0x7ffff67c30d8 constant 4>
        align:32 warn_if_not_align:0 symtab:0 alias-set 2 canonical-type
0x7ffff67c05e8 precision:32 min <integer_cst 0x7ffff67c3078 -2147483648> max
<integer_cst 0x7ffff67c3090 2147483647>
        pointer_to_this <pointer_type 0x7ffff67c89d8>>
    unsigned DI
    size <integer_cst 0x7ffff67a2e70 type <integer_type 0x7ffff67c00a8
bitsizetype> constant 64>
    unit-size <integer_cst 0x7ffff67a2e88 type <integer_type 0x7ffff67c0000
sizetype> constant 8>
    user align:128 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x7ffff67c89d8
    attributes <tree_list 0x7ffff68f4398
        purpose <identifier_node 0x7ffff68f6940 aligned
            normal local bindings <(nil)>>>>
 <pointer_type 0x7ffff68fb0a8
    type <integer_type 0x7ffff67c05e8 int public type_6 SI
        size <integer_cst 0x7ffff67c30c0 constant 32>
        unit-size <integer_cst 0x7ffff67c30d8 constant 4>
        align:32 warn_if_not_align:0 symtab:0 alias-set 2 canonical-type
0x7ffff67c05e8 precision:32 min <integer_cst 0x7ffff67c3078 -2147483648> max
<integer_cst 0x7ffff67c3090 2147483647>
        pointer_to_this <pointer_type 0x7ffff67c89d8>>
    unsigned packed DI
    size <integer_cst 0x7ffff67a2e70 type <integer_type 0x7ffff67c00a8
bitsizetype> constant 64>
    unit-size <integer_cst 0x7ffff67a2e88 type <integer_type 0x7ffff67c0000
sizetype> constant 8>
    user align:128 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x7ffff67c89d8
    attributes <tree_list 0x7ffff68f4398
        purpose <identifier_node 0x7ffff68f6940 aligned
            normal local bindings <(nil)>>>>
during IPA pass: *free_lang_data
ice1.ii:3:4: internal compiler error: verify_type failed
0x1151df2 verify_type(tree_node const*)
        /home/marxin/Programming/gcc/gcc/tree.c:13960
0x1153589 free_lang_data_in_cgraph
        /home/marxin/Programming/gcc/gcc/tree.c:5836
0x1153589 free_lang_data
        /home/marxin/Programming/gcc/gcc/tree.c:5865
0x1153589 execute
        /home/marxin/Programming/gcc/gcc/tree.c:5918
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
*** Bug 86454 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-609513-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 11:29:07 2018
Return-Path: <gcc-bugs-return-609513-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 20537 invoked by alias); 10 Jul 2018 11:29:07 -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 14917 invoked by uid 48); 10 Jul 2018 11:25:30 -0000
From: "iains at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81685] [7/8/9 Regression] FAIL: g++.dg/debug/dwarf2/inline-ns-2.C  -std=gnu++* (internal compiler error) on darwin
Date: Tue, 10 Jul 2018 11:33: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: iains at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: iains at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.2
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cf_gcctarget cf_gcchost version target_milestone cf_gccbuild
Message-ID: <bug-81685-4-aWCSJGq2IU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81685-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81685-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: 2018-07/txt/msg00618.txt.bz2
Content-length: 536

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|x86_64-apple-darwin16       |*-apple-darwin*
               Host|x86_64-apple-darwin16       |*-apple-darwin*
            Version|8.0                         |9.0
   Target Milestone|---                         |8.2
              Build|x86_64-apple-darwin16       |*-apple-darwin*
>From gcc-bugs-return-609514-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 11:33:42 2018
Return-Path: <gcc-bugs-return-609514-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 69025 invoked by alias); 10 Jul 2018 11:33:42 -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 63381 invoked by uid 48); 10 Jul 2018 11:33:38 -0000
From: "iains at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/78544] FAIL: gcc.dg/tree-prof/section-attr-*.c compilation,  -fprofile-generate -D_PROFILE_GENERATE on darwin
Date: Tue, 10 Jul 2018 11:36:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: testsuite
X-Bugzilla-Version: 7.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: attachments.isobsolete attachments.created
Message-ID: <bug-78544-4-Ow0MbemiBW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78544-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78544-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: 2018-07/txt/msg00619.txt.bz2
Content-length: 592

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

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

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

--- Comment #5 from Iain Sandoe <iains at gcc dot gnu.org> ---
Created attachment 44372
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44372&action=edit
V3 fix

Updated to take into account the changed section switch labels emitted from
final.c
>From gcc-bugs-return-609515-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 11:36:43 2018
Return-Path: <gcc-bugs-return-609515-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 122405 invoked by alias); 10 Jul 2018 11:36:42 -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 122368 invoked by uid 48); 10 Jul 2018 11:36:38 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/86455] var-tracking mishandled pre_dec
Date: Tue, 10 Jul 2018 11:46: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vries at gcc dot gnu.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: attachments.created
Message-ID: <bug-86455-4-ZXHaglclBI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86455-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86455-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: 2018-07/txt/msg00620.txt.bz2
Content-length: 1278

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

--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> ---
Created attachment 44373
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44373&action=edit
Tentative patch

Using this tentative patch, I get the correct updated insn 132:
...
(insn/f 132 4 133 2 (parallel [
            (set (mem:DI (plus:DI (reg/f:DI 16 argp)
                        (const_int -16 [0xfffffffffffffff0])) [0  S8 A8])
                (reg:DI 44 r15))
            (set (reg/f:DI 7 sp)
                (plus:DI (reg/f:DI 16 argp)
                    (const_int -16 [0xfffffffffffffff0])))
        ])
"/home/vries/gcc_versions/devel/src/gcc/testsuite/gcc.dg/guality/csttest.c":10
61 {*pushdi2_rex64}
     (expr_list:REG_DEAD (reg:DI 44 r15)
        (nil)))
...

and the location for p is ok now:
...
        imulq   %rax, %rcx
        movq    %rcx, -8(%rsp)
.LVL20:
        # DEBUG p => cx
        # csttest.c:25:3
        .loc 1 25 3 is_stmt 1
        # csttest.c:25:22
        .loc 1 25 22 is_stmt 0
        movabsq $-4252017623040, %rcx
.LVL21:
        # DEBUG p => [argp-0x40]
...
[ The location argp-0x40 is an 8 times 8 byte offset: one for
INCOMING_FRAME_SP_OFFSET, 6 for pushing callee-save regs, and one for
'-8(%rsp)'. ]
>From gcc-bugs-return-609516-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 11:46:44 2018
Return-Path: <gcc-bugs-return-609516-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 26073 invoked by alias); 10 Jul 2018 11:46:43 -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 19539 invoked by uid 48); 10 Jul 2018 11:46:39 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/86456] New: [8/9 Regression] Segfault in switch_to_section at  gcc/varasm.c:7353 since r259317
Date: Tue, 10 Jul 2018 11:48:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: debug
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: ice-on-valid-code
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: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc target_milestone
Message-ID: <bug-86456-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: 2018-07/txt/msg00621.txt.bz2
Content-length: 1128

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

            Bug ID: 86456
           Summary: [8/9 Regression] Segfault in switch_to_section at
                    gcc/varasm.c:7353 since r259317
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: debug
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: rguenth at gcc dot gnu.org
  Target Milestone: ---

Following causes ICE:

$ cat ice2.ii
int a;

$ g++ -flto -g   -gdwarf-5  -ffat-lto-objects ice2.ii -c
ice2.ii:1:6: internal compiler error: Segmentation fault
 int a;
      ^
0xead4ff crash_signal
        /home/marxin/Programming/gcc/gcc/toplev.c:324
0x7ffff69d810f ???
       
/usr/src/debug/glibc-2.27-6.1.x86_64/signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0
0x117b5aa switch_to_section(section*)
        /home/marxin/Programming/gcc/gcc/varasm.c:7353
0xb68ddf dwarf2out_finish
        /home/marxin/Programming/gcc/gcc/dwarf2out.c:31514
>From gcc-bugs-return-609517-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 11:48:53 2018
Return-Path: <gcc-bugs-return-609517-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 41133 invoked by alias); 10 Jul 2018 11:48:52 -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 40943 invoked by uid 48); 10 Jul 2018 11:48:41 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/86457] New: [8/9 Regression] ICE in add_dwarf_attr, at dwarf2out.c:4405 since r251448
Date: Tue, 10 Jul 2018 11:50:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: debug
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: ice-on-valid-code
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: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc target_milestone
Message-ID: <bug-86457-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: 2018-07/txt/msg00622.txt.bz2
Content-length: 1057

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

            Bug ID: 86457
           Summary: [8/9 Regression] ICE in add_dwarf_attr, at
                    dwarf2out.c:4405 since r251448
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: debug
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: rguenth at gcc dot gnu.org
  Target Milestone: ---

Following ICEs:

$ cat ice3.ii
class O {};
O eo;
int main () {}

$ g++ ice3.ii -flto -g1 -ffat-lto-objects  -fdebug-types-section -gdwarf-4
ice3.ii:3:14: internal compiler error: in add_dwarf_attr, at dwarf2out.c:4405
 int main () {}
              ^
0x6a83c4 add_dwarf_attr
        /home/marxin/Programming/gcc/gcc/dwarf2out.c:4405
0xb687e4 add_AT_lineptr
        /home/marxin/Programming/gcc/gcc/dwarf2out.c:5216
0xb687e4 dwarf2out_finish
        /home/marxin/Programming/gcc/gcc/dwarf2out.c:31335
>From gcc-bugs-return-609518-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 11:50:46 2018
Return-Path: <gcc-bugs-return-609518-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 43407 invoked by alias); 10 Jul 2018 11:50:45 -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 43323 invoked by uid 48); 10 Jul 2018 11:50:41 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: =?UTF-8?B?W0J1ZyBsdG8vODY0NThdIE5ldzogWzgvOSBSZWdyZXNzaW9uXSBJQ0U6IHRy?= =?UTF-8?B?ZWUgY29kZSDigJh0ZW1wbGF0ZV9wYXJtX2luZGV44oCZIGlzIG5vdCBzdXBw?= =?UTF-8?B?b3J0ZWQgaW4gTFRPIHN0cmVhbXM=?Date: Tue, 10 Jul 2018 11:59:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: lto
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: ice-on-valid-code
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: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc target_milestone
Message-ID: <bug-86458-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: 2018-07/txt/msg00623.txt.bz2
Content-length: 2303

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

            Bug ID: 86458
           Summary: [8/9 Regression] ICE: tree code ‘template_parm_index’
                    is not supported in LTO streams
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: jakub at gcc dot gnu.org, marxin at gcc dot gnu.org
  Target Milestone: ---

Following ICEs:

$ cat ice4.ii
template<int N>
using T = int __attribute__((vector_size (sizeof(int) * N)));

void
f (T<4>)
{
}

$ g++ ice4.ii -c  -flto
during IPA pass: fnsummary
ice4.ii:7:1: internal compiler error: tree code ‘template_parm_index’ is not
supported in LTO streams
 }
 ^
0xd7b89b lto_write_tree
        /home/marxin/Programming/gcc/gcc/lto-streamer-out.c:449
0xd7b89b lto_output_tree_1
        /home/marxin/Programming/gcc/gcc/lto-streamer-out.c:490
0xd7b89b DFS::DFS(output_block*, tree_node*, bool, bool, bool)
        /home/marxin/Programming/gcc/gcc/lto-streamer-out.c:677
0xd7c7d0 lto_output_tree(output_block*, tree_node*, bool, bool)
        /home/marxin/Programming/gcc/gcc/lto-streamer-out.c:1642
0xd72042 write_global_stream
        /home/marxin/Programming/gcc/gcc/lto-streamer-out.c:2515
0xd7a6fe lto_output_decl_state_streams(output_block*, lto_out_decl_state*)
        /home/marxin/Programming/gcc/gcc/lto-streamer-out.c:2562
0xd7a6fe produce_asm_for_decls()
        /home/marxin/Programming/gcc/gcc/lto-streamer-out.c:2891
0xdda70f write_lto
        /home/marxin/Programming/gcc/gcc/passes.c:2562
0xdddb6e ipa_write_summaries_1
        /home/marxin/Programming/gcc/gcc/passes.c:2623
0xdddb6e ipa_write_summaries()
        /home/marxin/Programming/gcc/gcc/passes.c:2686
0xae1bf2 ipa_passes
        /home/marxin/Programming/gcc/gcc/cgraphunit.c:2448
0xae1bf2 symbol_table::compile()
        /home/marxin/Programming/gcc/gcc/cgraphunit.c:2536
0xae3d69 symbol_table::compile()
        /home/marxin/Programming/gcc/gcc/cgraphunit.c:2515
0xae3d69 symbol_table::finalize_compilation_unit()
        /home/marxin/Programming/gcc/gcc/cgraphunit.c:2696
>From gcc-bugs-return-609519-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 11:59:48 2018
Return-Path: <gcc-bugs-return-609519-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 55463 invoked by alias); 10 Jul 2018 11:59:47 -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 55013 invoked by uid 48); 10 Jul 2018 11:59:42 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/86453] [8/9 Regression] error: type variant differs by TYPE_PACKED in free_lang_data since r255469
Date: Tue, 10 Jul 2018 12:10:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: lto
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth 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: 8.2
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc target_milestone everconfirmed
Message-ID: <bug-86453-4-nPrP0GW9LM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86453-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86453-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: 2018-07/txt/msg00624.txt.bz2
Content-length: 1465

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2018-07-10
                 CC|                            |hubicka at gcc dot gnu.org
   Target Milestone|---                         |8.2
     Ever confirmed|0                           |1

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Well, since __attribute__((packed) is handled like

502       if (TYPE_P (*node))
503         {
504           if (!(flags & (int) ATTR_FLAG_TYPE_IN_PLACE))
505             *node = build_variant_type_copy (*node);
506           TYPE_PACKED (*node) = 1;
507         }

I can't see how that verification is "correct".  There's clearly a path
where this is violated.

Honza?

I know the type verifier isn't applied on all types if you do not run
free-lang-data.  I suppose we could change at least that by doing the find_*
stuff
unconditionally if (flag_checking) and then run verify_type but not free
anything (doing that has side-effects that need to be "fixed").

Anyhow, I suggest to prune the TYPE_PACKED checking for now - clearly
variant types _do_ differ here (they also differ in alignment).  Not sure
how you thought TYPE_PACKED is variant independent?
>From gcc-bugs-return-609520-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 12:10:44 2018
Return-Path: <gcc-bugs-return-609520-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 93461 invoked by alias); 10 Jul 2018 12:10:44 -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 93406 invoked by uid 48); 10 Jul 2018 12:10:40 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/86453] [8/9 Regression] error: type variant differs by TYPE_PACKED in free_lang_data since r255469
Date: Tue, 10 Jul 2018 12:13:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: lto
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth 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: 8.2
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-86453-4-y90CQh3tlK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86453-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86453-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: 2018-07/txt/msg00625.txt.bz2
Content-length: 311

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

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Created attachment 44374
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44374&action=edit
run verify_types unconditionally

With this patch -flto isn't needed to trigger the bug.
>From gcc-bugs-return-609521-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 12:13:54 2018
Return-Path: <gcc-bugs-return-609521-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 62858 invoked by alias); 10 Jul 2018 12:13:53 -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 62807 invoked by uid 48); 10 Jul 2018 12:13:49 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/86459] New: [9 Regression] ICE in output_macinfo_op, at dwarf2out.c:28095 since r260297
Date: Tue, 10 Jul 2018 12:23:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: debug
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: ice-on-valid-code
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: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc target_milestone
Message-ID: <bug-86459-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: 2018-07/txt/msg00626.txt.bz2
Content-length: 1164

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

            Bug ID: 86459
           Summary: [9 Regression] ICE in output_macinfo_op, at
                    dwarf2out.c:28095 since r260297
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: debug
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: mark at gcc dot gnu.org
  Target Milestone: ---

Starting from the revision, we ICE on:

$ gcc /home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/pr86064.c -gsplit-dwarf
-g3 -c
/home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/pr86064.c:27:1: internal
compiler error: in output_macinfo_op, at dwarf2out.c:28069
 }
 ^
0x92fc8e output_macinfo_op
        /home/marxin/Programming/gcc/gcc/dwarf2out.c:28067
0x92fc75 output_macinfo_op
        /home/marxin/Programming/gcc/gcc/dwarf2out.c:28054
0x930a21 output_macinfo
        /home/marxin/Programming/gcc/gcc/dwarf2out.c:28392
0x955e96 dwarf2out_finish
        /home/marxin/Programming/gcc/gcc/dwarf2out.c:31486
>From gcc-bugs-return-609522-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 12:23:14 2018
Return-Path: <gcc-bugs-return-609522-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 106932 invoked by alias); 10 Jul 2018 12:23: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 106874 invoked by uid 48); 10 Jul 2018 12:23:10 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/78685] -Og generates too many "<optimized out>"s
Date: Tue, 10 Jul 2018 12:27: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.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vries 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-78685-4-gyu2zIwYBn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78685-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78685-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: 2018-07/txt/msg00627.txt.bz2
Content-length: 718

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

--- Comment #13 from Tom de Vries <vries at gcc dot gnu.org> ---
(In reply to Tom de Vries from comment #12)
> Created attachment 44343 [details]

> [debug] Add fkeep-vars-live

> Guality testing status: Og -fkeep-vars-live gives better results than Og for
> pr54200.c and pr54970.c, but worse results here:
> ...
> FAIL: gcc.dg/guality/csttest.c  -Og -fkeep-vars-live -DPREVENT_OPTIMIZATION  \
>       line 29 n == -(0x17ULL << 50)
> FAIL: gcc.dg/guality/csttest.c  -Og -fkeep-vars-live -DPREVENT_OPTIMIZATION  \
>       line 55 j == -(0x17ULL << 31)
> ...

Looks like an independent problem, filed as PR86455 - "var-tracking mishandles
pre_dec".
>From gcc-bugs-return-609523-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 12:27:14 2018
Return-Path: <gcc-bugs-return-609523-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 3124 invoked by alias); 10 Jul 2018 12:27: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 3078 invoked by uid 48); 10 Jul 2018 12:27:09 -0000
From: "mark at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/86459] [9 Regression] ICE in output_macinfo_op, at dwarf2out.c:28095 since r260297
Date: Tue, 10 Jul 2018 12:32: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: 9.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mark at gcc dot gnu.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-86459-4-eKAkIjMV12@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86459-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86459-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: 2018-07/txt/msg00628.txt.bz2
Content-length: 2506

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

--- Comment #1 from Mark Wielaard <mark at gcc dot gnu.org> ---
Sorry I missed that testcase starting to fail. I don't currently have it in my
tree, so I assume it was added after this commit?

svn r260297 is:

commit 35a499265a9b4b31277fc540ddfbeb63fb361649
Author: mark <mark@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Wed May 16 18:02:25 2018 +0000

    DWARF: Emit DWARF5 forms for indirect addresses and string offsets.

    We already emit DWARF5 attributes and tables for indirect addresses
    and string offsets, but still use GNU forms. Add a new helper function
    dwarf_FORM () for emitting the right form.

    Currently we only use the uleb128 forms. But DWARF5 also allows
    1, 2, 3 and 4 byte forms (DW_FORM_strx[1234] and DW_FORM_addrx[1234])
    which might be more space efficient.

    gcc/ChangeLog

        * dwarf2out.c (dwarf_FORM): New function.
        (set_indirect_string): Use dwarf_FORM.
        (reset_indirect_string): Likewise.
        (size_of_die): Likewise.
        (value_format): Likewise.
        (output_die): Likewise.
        (add_skeleton_AT_string): Likewise.
        (output_macinfo_op): Likewise.
        (index_string): Likewise.
        (output_index_string_offset): Likewise.
        (output_index_string): Likewise.

    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@260297
138bc75d-0d04-0410-961f-82ee72b054a4

Which changed output_macinfo_op as follows:

@@ -28070,7 +28092,7 @@ output_macinfo_op (macinfo_entry *ref)
       node = find_AT_string (ref->info);
       gcc_assert (node
                  && (node->form == DW_FORM_strp
-                     || node->form == DW_FORM_GNU_str_index));
+                     || node->form == dwarf_form (DW_FORM_strx)));
       dw2_asm_output_data (1, ref->code,
                           ref->code == DW_MACRO_define_strp
                           ? "Define macro strp"

So I assume it is this assert that is triggering.

dwarf_form () was also introduced in that patch and is:

+/* And similarly for forms.  */
+static inline enum dwarf_form
+dwarf_FORM (enum dwarf_form form)
+{
+  switch (form)
+    {
+    case DW_FORM_addrx:
+      if (dwarf_version < 5)
+       return DW_FORM_GNU_addr_index;
+      break;
+
+    case DW_FORM_strx:
+      if (dwarf_version < 5)
+       return DW_FORM_GNU_str_index;
+      break;
+
+    default:
+      break;
+    }
+  return form;
+}

I'll update my tree and will try to replicate.
>From gcc-bugs-return-609524-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 12:32:04 2018
Return-Path: <gcc-bugs-return-609524-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 38801 invoked by alias); 10 Jul 2018 12:32:04 -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 32526 invoked by uid 48); 10 Jul 2018 12:31:50 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/86456] [8/9 Regression] Segfault in switch_to_section at  gcc/varasm.c:7353 since r259317
Date: Tue, 10 Jul 2018 12:39: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: 9.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth 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: 8.2
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc target_milestone everconfirmed
Message-ID: <bug-86456-4-yfpL81vdOg@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86456-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86456-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: 2018-07/txt/msg00629.txt.bz2
Content-length: 1620

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
                 CC|                            |jakub at gcc dot gnu.org
   Target Milestone|---                         |8.2
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Seems to have to do with .debug_line_str section stuff.

31507     if (debug_line_str_hash)
31508       {
31509         switch_to_section (debug_line_str_section);

and debug_line_str_section is NULL.

The non-LTO variant is allocated under the condition

      if (!dwarf_split_debug_info && !output_asm_line_debug_info ())
        debug_line_str_section = get_section (DEBUG_LINE_STR_SECTION,
                                              DEBUG_STR_SECTION_FLAGS, NULL);

while the LTO one has

      if (!dwarf_split_debug_info && !dwarf2out_as_loc_support)
        debug_line_str_section
          = get_section (DEBUG_LTO_LINE_STR_SECTION,
                         DEBUG_STR_SECTION_FLAGS | SECTION_EXCLUDE, NULL);

making them match doesn't fix the testcase though.

The debug_line_str_hash is populated by output_file_names () which does

      if (DWARF5_USE_DEBUG_LINE_STR)
        str_form = DW_FORM_line_strp;

so I suppose this is again a condition mismatch somehow and all is independent
of -flto as well.  Not sure why it doesn't ICE without -flto though.
>From gcc-bugs-return-609525-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 12:39:10 2018
Return-Path: <gcc-bugs-return-609525-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 53033 invoked by alias); 10 Jul 2018 12:39: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 38786 invoked by uid 48); 10 Jul 2018 12:39:03 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/86457] [8/9 Regression] ICE in add_dwarf_attr, at dwarf2out.c:4405 since r251448
Date: Tue, 10 Jul 2018 12:43: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: 9.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.2
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to target_milestone everconfirmed
Message-ID: <bug-86457-4-sOgb7jXLkw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86457-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86457-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: 2018-07/txt/msg00630.txt.bz2
Content-length: 1273

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |rguenth at gcc dot gnu.org
   Target Milestone|---                         |8.2
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Similar to what was fixed in r259317 -fdebug-types-section needs this as well.

diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index a7c4620cfc3..3563f3beb92 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -31120,9 +31120,9 @@ dwarf2out_finish (const char *)
          if (*slot != HTAB_EMPTY_ENTRY)
            continue;

-         /* Add a pointer to the line table for the main compilation unit
-            so that the debugger can make sense of DW_AT_decl_file
-            attributes.  */
+         /* Remove the pointer to the line table.  */
+         remove_AT (ctnode->root_die, DW_AT_stmt_list);
+
          if (debug_info_level >= DINFO_LEVEL_TERSE)
            reset_dies (ctnode->root_die);
>From gcc-bugs-return-609526-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 12:43:23 2018
Return-Path: <gcc-bugs-return-609526-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 96539 invoked by alias); 10 Jul 2018 12:43:22 -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 96401 invoked by uid 48); 10 Jul 2018 12:43:15 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: =?UTF-8?B?W0J1ZyBjKysvODY0NThdIFs4LzkgUmVncmVzc2lvbl0gSUNFOiB0cmVlIGNv?= =?UTF-8?B?ZGUg4oCYdGVtcGxhdGVfcGFybV9pbmRleOKAmSBpcyBub3Qgc3VwcG9ydGVk?= =?UTF-8?B?IGluIExUTyBzdHJlYW1z?Date: Tue, 10 Jul 2018 12:44: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: 9.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.2
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority bug_status cc component target_milestone everconfirmed
Message-ID: <bug-86458-4-ok6zj6NGIW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86458-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86458-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: 2018-07/txt/msg00631.txt.bz2
Content-length: 1839

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
             Status|UNCONFIRMED                 |NEW
                 CC|                            |jason at gcc dot gnu.org
          Component|lto                         |c++
   Target Milestone|---                         |8.2
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.  The C++ FE doesn't subsitute template parameters in DECL_ARGUMENTs
anon PARM_DECL for T<4>, specifically in the attribute list.

 <function_decl 0x7ffff69e2900 f
...
    arguments <parm_decl 0x7ffff68b6200 D.2294
        type <integer_type 0x7ffff69e0c78 T SI
            size <integer_cst 0x7ffff68ae0c0 constant 32>
            unit-size <integer_cst 0x7ffff68ae0d8 constant 4>
            align:32 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x7ffff68ab5e8
            attributes <tree_list 0x7ffff69df578 tree_0
                purpose <identifier_node 0x7ffff69f2f80 vector_size
                    normal local bindings <(nil)>>
                value <tree_list 0x7ffff69df618
                    value <mult_expr 0x7ffff69df5f0 type <integer_type
0x7ffff68ab7e0 long unsigned int>

                        arg:0 <sizeof_expr 0x7ffff69f3260 type <integer_type
0x7ffff68ab7e0 long unsigned int>
                            readonly arg:0 <integer_type 0x7ffff68ab5e8 int>
                            t.ii:2:43 start: t.ii:2:43 finish: t.ii:2:53>
                        arg:1 <template_parm_index 0x7ffff688b990 type
<integer_type 0x7ffff68ab5e8 int>


Jason?
>From gcc-bugs-return-609527-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 12:44:33 2018
Return-Path: <gcc-bugs-return-609527-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 97891 invoked by alias); 10 Jul 2018 12:44: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 97706 invoked by uid 48); 10 Jul 2018 12:44:18 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/86459] [9 Regression] ICE in output_macinfo_op, at dwarf2out.c:28095 since r260297
Date: Tue, 10 Jul 2018 12: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: 9.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.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: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: target_milestone
Message-ID: <bug-86459-4-ihGaHeQ5Lw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86459-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86459-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: 2018-07/txt/msg00632.txt.bz2
Content-length: 293

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |9.0
>From gcc-bugs-return-609528-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 12:46:02 2018
Return-Path: <gcc-bugs-return-609528-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 107460 invoked by alias); 10 Jul 2018 12:45:51 -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 107209 invoked by uid 48); 10 Jul 2018 12:45:43 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: =?UTF-8?B?W0J1ZyBjKysvODY0NThdIFs4LzkgUmVncmVzc2lvbl0gSUNFOiB0cmVlIGNv?= =?UTF-8?B?ZGUg4oCYdGVtcGxhdGVfcGFybV9pbmRleOKAmSBpcyBub3Qgc3VwcG9ydGVk?= =?UTF-8?B?IGluIExUTyBzdHJlYW1z?Date: Tue, 10 Jul 2018 12:49: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: 9.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.2
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-86458-4-Zi16QKgqn5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86458-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86458-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: 2018-07/txt/msg00633.txt.bz2
Content-length: 148

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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Isn't this a dup of PR83997?
>From gcc-bugs-return-609529-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 12:49:19 2018
Return-Path: <gcc-bugs-return-609529-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 113415 invoked by alias); 10 Jul 2018 12:49: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 112845 invoked by uid 48); 10 Jul 2018 12:49:12 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/83997] ICE with alias template and attribute
Date: Tue, 10 Jul 2018 12:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: lto
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code, lto
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth 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-83997-4-EbKGyTtpgj@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83997-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83997-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: 2018-07/txt/msg00634.txt.bz2
Content-length: 184

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

--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
*** Bug 86458 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-609530-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 12:49:19 2018
Return-Path: <gcc-bugs-return-609530-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 113487 invoked by alias); 10 Jul 2018 12:49: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 112716 invoked by uid 48); 10 Jul 2018 12:49:10 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: =?UTF-8?B?W0J1ZyBjKysvODY0NThdIFs4LzkgUmVncmVzc2lvbl0gSUNFOiB0cmVlIGNv?= =?UTF-8?B?ZGUg4oCYdGVtcGxhdGVfcGFybV9pbmRleOKAmSBpcyBub3Qgc3VwcG9ydGVk?= =?UTF-8?B?IGluIExUTyBzdHJlYW1z?Date: Tue, 10 Jul 2018 13:02: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: 9.0
X-Bugzilla-Keywords: ice-on-valid-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: 8.2
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-86458-4-cpgLxuCTpa@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86458-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86458-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: 2018-07/txt/msg00635.txt.bz2
Content-length: 493

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

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

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

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
yes.

*** This bug has been marked as a duplicate of bug 83997 ***
>From gcc-bugs-return-609531-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 13:02:28 2018
Return-Path: <gcc-bugs-return-609531-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 128279 invoked by alias); 10 Jul 2018 13:02:28 -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 128198 invoked by uid 48); 10 Jul 2018 13:02:18 -0000
From: "janus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/86328] [8/9 Regression] Runtime segfault reading an allocatable class(*) object in allocate statements
Date: Tue, 10 Jul 2018 13:18: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: 8.1.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: janus at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.2
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-86328-4-DNlNWkhL44@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86328-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86328-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: 2018-07/txt/msg00636.txt.bz2
Content-length: 430

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

janus at gcc dot gnu.org changed:

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

--- Comment #4 from janus at gcc dot gnu.org ---
Bisection shows that this regression was introduced by Paul's r251949 on
2017-09-10.
>From gcc-bugs-return-609532-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 13:18:53 2018
Return-Path: <gcc-bugs-return-609532-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 49516 invoked by alias); 10 Jul 2018 13:18:53 -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 43274 invoked by uid 48); 10 Jul 2018 13:18:49 -0000
From: "nightstrike at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/55606] sorry, unimplemented: non-trivial designated initializers not supported
Date: Tue, 10 Jul 2018 13:21: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.8.0
X-Bugzilla-Keywords: FIXME, rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: nightstrike at gmail dot com
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-55606-4-1HLMFKpjXx@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-55606-4@http.gcc.gnu.org/bugzilla/>
References: <bug-55606-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: 2018-07/txt/msg00637.txt.bz2
Content-length: 182

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

--- Comment #11 from nightstrike <nightstrike at gmail dot com> ---
This now works with gcc 8.  I haven't tried other versions.
>From gcc-bugs-return-609533-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 13:21:47 2018
Return-Path: <gcc-bugs-return-609533-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 38264 invoked by alias); 10 Jul 2018 13:21:47 -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 38219 invoked by uid 48); 10 Jul 2018 13:21:43 -0000
From: "janus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/86328] [8/9 Regression] Runtime segfault reading an allocatable class(*) object in allocate statements
Date: Tue, 10 Jul 2018 13:22: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: 8.1.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: janus at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.2
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-86328-4-jhEJHeVkNK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86328-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86328-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: 2018-07/txt/msg00638.txt.bz2
Content-length: 380

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

--- Comment #5 from janus at gcc dot gnu.org ---
(In reply to janus from comment #4)
> Bisection shows that this regression was introduced by Paul's r251949 on
> 2017-09-10.

I could verify that reverting the expr.c part of that commit does not cure the
bug, so the problematic part must be somewhere in the trans* changes.
>From gcc-bugs-return-609534-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 13:22:57 2018
Return-Path: <gcc-bugs-return-609534-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 78580 invoked by alias); 10 Jul 2018 13:22:57 -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 74376 invoked by uid 48); 10 Jul 2018 13:22:53 -0000
From: "nightstrike at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/55606] sorry, unimplemented: non-trivial designated initializers not supported
Date: Tue, 10 Jul 2018 13:38: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.8.0
X-Bugzilla-Keywords: FIXME, rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: nightstrike at gmail dot com
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-55606-4-6JeV6rRk2W@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-55606-4@http.gcc.gnu.org/bugzilla/>
References: <bug-55606-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: 2018-07/txt/msg00639.txt.bz2
Content-length: 1024

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

--- Comment #12 from nightstrike <nightstrike at gmail dot com> ---
(In reply to Martin Sebor from comment #9)
> A similar test case not involving arrays:
> 
> $ cat z.c && /build/gcc-trunk-svn/gcc/xgcc -B /build/gcc-trunk-svn/gcc -S
> -Wall -Wextra -o/dev/null -xc++ z.c
> typedef struct A {
>     int i;
>     struct { int a, b; } s;
> } A;
> 
> A a = { 1, .s = { 2, 3 } };
> A b = { .i = 1, .s = { 2, 3 } };
> A c = { .s = { 2, 3 }, .i = 1 };
> z.c:8:31: sorry, unimplemented: non-trivial designated initializers not
> supported
>  A c = { .s = { 2, 3 }, .i = 1 };
>                                ^
> 
> z.c:8:31: sorry, unimplemented: non-trivial designated initializers not
> supported


This fails differently:

b.cc:8:31: error: designator order for field 'A::i' does not match declaration
order in 'A'
 A c = { .s = { 2, 3 }, .i = 1 };
                               ^

But commenting out that line makes the rest work fine.
>From gcc-bugs-return-609535-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 13:38:51 2018
Return-Path: <gcc-bugs-return-609535-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 35185 invoked by alias); 10 Jul 2018 13:38:51 -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 35119 invoked by uid 48); 10 Jul 2018 13:38:46 -0000
From: "janus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/86328] [8/9 Regression] Runtime segfault reading an allocatable class(*) object in allocate statements
Date: Tue, 10 Jul 2018 13:39: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: 8.1.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: janus at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.2
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-86328-4-lPtPjmyhMX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86328-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86328-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: 2018-07/txt/msg00640.txt.bz2
Content-length: 652

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

--- Comment #6 from janus at gcc dot gnu.org ---
Created attachment 44375
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44375&action=edit
dump of old (correct) version

I also tried to look at the output of -fdump-tree-original for the code in
comment #3, produced with gfortran versions before and after r251949.

Unfortunately the dump is pretty large and painful to read, and also the diff
is still quite large (partly just due to changing temp names). I have a hard
time decyphering it, but I attach both dumps here (in the hope that Paul might
possibly see what's going wrong).
>From gcc-bugs-return-609536-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 13:39:24 2018
Return-Path: <gcc-bugs-return-609536-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 39744 invoked by alias); 10 Jul 2018 13:39:23 -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 39664 invoked by uid 48); 10 Jul 2018 13:39:19 -0000
From: "janus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/86328] [8/9 Regression] Runtime segfault reading an allocatable class(*) object in allocate statements
Date: Tue, 10 Jul 2018 13:42: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: 8.1.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: janus at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.2
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-86328-4-WgEelPW3uN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86328-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86328-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: 2018-07/txt/msg00641.txt.bz2
Content-length: 231

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

--- Comment #7 from janus at gcc dot gnu.org ---
Created attachment 44376
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44376&action=edit
dump of new (buggy) version
>From gcc-bugs-return-609537-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 13:42:11 2018
Return-Path: <gcc-bugs-return-609537-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 50049 invoked by alias); 10 Jul 2018 13:42: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 46126 invoked by uid 48); 10 Jul 2018 13:42:04 -0000
From: "bneumeier at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/86460] New: GCC 8.1 cross-compiler fails to compile linux kernel
Date: Tue, 10 Jul 2018 13:57:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 8.1.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: bneumeier at gmail dot com
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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-86460-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: 2018-07/txt/msg00642.txt.bz2
Content-length: 3973

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

            Bug ID: 86460
           Summary: GCC 8.1 cross-compiler fails to compile linux kernel
           Product: gcc
           Version: 8.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: bneumeier at gmail dot com
  Target Milestone: ---

I have an AMD64-to-mipsel GCC 8.1 with branch updates through 2018-06-30. When
I try to compile Linux 4.17.4 with it, the build crashes at
arch/mips/kernel/signal.c with the errors below. Similar issues occur in
kernel/syscall.c, mm/cache.c, and elsewhere.

I'm able to work around the issue by adding -Wno-error=attribute-alias.

-----
In file included from arch/mips/kernel/signal.c:26:
./include/linux/syscalls.h:233:18: error: 'sys_sigsuspend' alias between
functions of incompatible types 'long int(sigset_t *)' {aka 'long int(struct
<anonymous> *)'} and 'long int(long int)' [-Werror=attribute-alias]
  asmlinkage long sys##name(__MAP(x,__SC_DECL,__VA_ARGS__)) \
                  ^~~
./include/linux/syscalls.h:222:2: note: in expansion of macro
'__SYSCALL_DEFINEx'
  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
  ^~~~~~~~~~~~~~~~~
./include/linux/syscalls.h:211:36: note: in expansion of macro
'SYSCALL_DEFINEx'
 #define SYSCALL_DEFINE1(name, ...) SYSCALL_DEFINEx(1, _##name, __VA_ARGS__)
                                    ^~~~~~~~~~~~~~~
arch/mips/kernel/signal.c:547:1: note: in expansion of macro 'SYSCALL_DEFINE1'
 SYSCALL_DEFINE1(sigsuspend, sigset_t __user *, uset)
 ^~~~~~~~~~~~~~~
./include/linux/syscalls.h:238:18: note: aliased declaration here
  asmlinkage long __se_sys##name(__MAP(x,__SC_LONG,__VA_ARGS__)) \
                  ^~~~~~~~
./include/linux/syscalls.h:222:2: note: in expansion of macro
'__SYSCALL_DEFINEx'
  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
  ^~~~~~~~~~~~~~~~~
./include/linux/syscalls.h:211:36: note: in expansion of macro
'SYSCALL_DEFINEx'
 #define SYSCALL_DEFINE1(name, ...) SYSCALL_DEFINEx(1, _##name, __VA_ARGS__)
                                    ^~~~~~~~~~~~~~~
arch/mips/kernel/signal.c:547:1: note: in expansion of macro 'SYSCALL_DEFINE1'
 SYSCALL_DEFINE1(sigsuspend, sigset_t __user *, uset)
 ^~~~~~~~~~~~~~~
./include/linux/syscalls.h:233:18: error: 'sys_sigaction' alias between
functions of incompatible types 'long int(int,  const struct sigaction *,
struct sigaction *)' and 'long int(long int,  long int,  long int)'
[-Werror=attribute-alias]
  asmlinkage long sys##name(__MAP(x,__SC_DECL,__VA_ARGS__)) \
                  ^~~
./include/linux/syscalls.h:222:2: note: in expansion of macro
'__SYSCALL_DEFINEx'
  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
  ^~~~~~~~~~~~~~~~~
./include/linux/syscalls.h:213:36: note: in expansion of macro
'SYSCALL_DEFINEx'
 #define SYSCALL_DEFINE3(name, ...) SYSCALL_DEFINEx(3, _##name, __VA_ARGS__)
                                    ^~~~~~~~~~~~~~~
arch/mips/kernel/signal.c:554:1: note: in expansion of macro 'SYSCALL_DEFINE3'
 SYSCALL_DEFINE3(sigaction, int, sig, const struct sigaction __user *, act,
 ^~~~~~~~~~~~~~~
./include/linux/syscalls.h:238:18: note: aliased declaration here
  asmlinkage long __se_sys##name(__MAP(x,__SC_LONG,__VA_ARGS__)) \
                  ^~~~~~~~
./include/linux/syscalls.h:222:2: note: in expansion of macro
'__SYSCALL_DEFINEx'
  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
  ^~~~~~~~~~~~~~~~~
./include/linux/syscalls.h:213:36: note: in expansion of macro
'SYSCALL_DEFINEx'
 #define SYSCALL_DEFINE3(name, ...) SYSCALL_DEFINEx(3, _##name, __VA_ARGS__)
                                    ^~~~~~~~~~~~~~~
arch/mips/kernel/signal.c:554:1: note: in expansion of macro 'SYSCALL_DEFINE3'
 SYSCALL_DEFINE3(sigaction, int, sig, const struct sigaction __user *, act,
 ^~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
scripts/Makefile.build:312: recipe for target 'arch/mips/kernel/signal.o'
failed
-----
>From gcc-bugs-return-609538-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 13:57:41 2018
Return-Path: <gcc-bugs-return-609538-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 130014 invoked by alias); 10 Jul 2018 13:57:40 -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 129950 invoked by uid 48); 10 Jul 2018 13:57:35 -0000
From: "foreese at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/86417] [9 Regression] FAIL: libgomp.fortran/alloc-comp-3.f90   -O0  (test for excess errors)
Date: Tue, 10 Jul 2018 14:19: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: 9.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: foreese at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-86417-4-5yQRk9QWWJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86417-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86417-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: 2018-07/txt/msg00643.txt.bz2
Content-length: 3605

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

--- Comment #12 from Fritz Reese <foreese at gcc dot gnu.org> ---
(In reply to Thomas Koenig from comment #11)
> (In reply to janus from comment #10)
...
> 
> If possible, I would prefer to set the locus where it is generated,
> not conditionally later.
> 
> Unfortunately, I cannot currently look into this due to PR 86450 :-(
> 
> If I had a bootstrapping gcc, I would probably look at
> 
>       /* Fetch or generate an initializer for the component.  */
>       tmp = component_initializer (comp, generate);
> 
> and see if the locus is set correctly at that point, then
> (possibly) go back to component_initializer to see where this is
> missing.

I agree. I traced the issue and it appears locus info is not set for
gfc_components which are created from a module definition, so c->loc is empty.
Given that, this line is erroneous:

> static gfc_expr *
> component_initializer (gfc_component *c, bool generate)
> [...]
>      init = gfc_get_null_expr (&c->loc);

Before r262442 the locus for the NULL expression was originally copied from the
derived type to which the component belonged. (This is less than ideal when the
message actually refers to the component, which is why this behavior was
"fixed" in r262442.)

If we set the component's locus when it is loaded from a module, the following
patch fixes the issue and retains sane location information for the component
and its initializer:

diff --git a/gcc/fortran/module.c b/gcc/fortran/module.c
index b120501beb7..27d68f6b1b5 100644
--- a/gcc/fortran/module.c
+++ b/gcc/fortran/module.c
@@ -2848,6 +2848,8 @@ mio_component (gfc_component *c, int vtype)
   if (c->attr.proc_pointer)
     mio_typebound_proc (&c->tb);

+  c->loc = gfc_current_locus;
+
   mio_rparen ();
 }

However if we prefer not to set the component's locus for whatever reason, the
following alternative patch also fixes the issue, where the component's
initializer has its locus set to that of the derived type declaration:

diff --git a/gcc/fortran/expr.c b/gcc/fortran/expr.c
index 6a7e09589a7..c63b41c36e4 100644
--- a/gcc/fortran/expr.c
+++ b/gcc/fortran/expr.c
@@ -4444,7 +4444,7 @@ comp_pointer (gfc_component *comp)
    Only generate an initializer if generate is true.  */

 static gfc_expr *
-component_initializer (gfc_component *c, bool generate)
+component_initializer (gfc_typespec *derived, gfc_component *c, bool generate)
 {
   gfc_expr *init = NULL;

@@ -4453,7 +4453,10 @@ component_initializer (gfc_component *c, bool generate)
      do not already have an initializer.  */
   if (comp_allocatable (c) || (generate && comp_pointer (c) &&
!c->initializer))
     {
-      init = gfc_get_null_expr (&c->loc);
+      if (c->loc.nextc && c->loc.lb)
+       init = gfc_get_null_expr (&c->loc);
+      else
+       init = gfc_get_null_expr (&derived->declared_at);
       init->ts = c->ts;
       return init;
     }
@@ -4588,7 +4591,7 @@ gfc_generate_initializer (gfc_typespec *ts, bool
generate)
       gfc_constructor *ctor = gfc_constructor_get();

       /* Fetch or generate an initializer for the component.  */
-      tmp = component_initializer (comp, generate);
+      tmp = component_initializer (ts->u.derived, comp, generate);
       if (tmp)
        {
          /* Save the component ref for STRUCTUREs and UNIONs.  */


I am currently running regression tests to verify these patches. If both pass
and I have not missed something obvious I would prefer adding location info to
the component when loading from a module (the first patch).
>From gcc-bugs-return-609539-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 14:19:24 2018
Return-Path: <gcc-bugs-return-609539-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 1107 invoked by alias); 10 Jul 2018 14:19:23 -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 1064 invoked by uid 48); 10 Jul 2018 14:19:19 -0000
From: "seurer at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/86461] New: [9 regression] test case gcc.c-torture/execute/builtins/strlen-3.c fails starting with r262522
Date: Tue, 10 Jul 2018 14:32:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: seurer at gcc dot gnu.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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-86461-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: 2018-07/txt/msg00644.txt.bz2
Content-length: 4194

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

            Bug ID: 86461
           Summary: [9 regression] test case
                    gcc.c-torture/execute/builtins/strlen-3.c fails
                    starting with r262522
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: seurer at gcc dot gnu.org
  Target Milestone: ---

spawn -ignore SIGHUP /home/seurer/gcc/build/gcc-test/gcc/xgcc
-B/home/seurer/gcc/build/gcc-test/gcc/
/home/seurer/gcc/gcc-test/gcc/testsuite/gcc.c-torture/execute/builtins/strlen-3.c
/home/seurer/gcc/gcc-test/gcc/testsuite/gcc.c-torture/execute/builtins/strlen-3-lib.c
/home/seurer/gcc/gcc-test/gcc/testsuite/gcc.c-torture/execute/builtins/lib/main.c
-fno-diagnostics-show-caret -fdiagnostics-color=never -w -Og -g
-fno-tree-loop-distribute-patterns -fno-tracer -lm -o
/home/seurer/gcc/build/gcc-test/gcc/testsuite/gcc/strlen-3.x6
PASS: gcc.c-torture/execute/builtins/strlen-3.c compilation,  -Og -g 
Setting LD_LIBRARY_PATH to
:/home/seurer/gcc/build/gcc-test/gcc::/home/seurer/gcc/build/gcc-test/gcc:/home/seurer/gcc/build/gcc-test/./gmp/.libs:/home/seurer/gcc/build/gcc-test/./prev-gmp/.libs:/home/seurer/gcc/build/gcc-test/./mpfr/src/.libs:/home/seurer/gcc/build/gcc-test/./prev-mpfr/src/.libs:/home/seurer/gcc/build/gcc-test/./mpc/src/.libs:/home/seurer/gcc/build/gcc-test/./prev-mpc/src/.libs:/home/seurer/gcc/build/gcc-test/./isl/.libs:/home/seurer/gcc/build/gcc-test/./prev-isl/.libs:/home/seurer/gcc/install/gcc-7.2.0/lib64
Execution timeout is: 300
spawn [open ...]
FAIL: gcc.c-torture/execute/builtins/strlen-3.c execution,  -Og -g 


/home/seurer/gcc/build/gcc-test/gcc/xgcc -B/home/seurer/gcc/build/gcc-test/gcc/
/home/seurer/gcc/gcc-test/gcc/testsuite/gcc.c-torture/execute/builtins/strlen-3.c
/home/seurer/gcc/gcc-test/gcc/testsuite/gcc.c-torture/execute/builtins/strlen-3-lib.c
/home/seurer/gcc/gcc-test/gcc/testsuite/gcc.c-torture/execute/builtins/lib/main.c
-fno-diagnostics-show-caret -fdiagnostics-color=never -w -Og -g
-fno-tree-loop-distribute-patterns -fno-tracer -lm -o strlen-3                  

./strlen-3 
Aborted

gdb ./strlen-3 
(gdb) run
Starting program: /home/seurer/gcc/build/gcc-test/./strlen-3 

Program received signal SIGABRT, Aborted.
0x00003fffb7cd247c in __GI_raise (sig=<optimized out>) at
../nptl/sysdeps/unix/sysv/linux/raise.c:56
56        return INLINE_SYSCALL (tgkill, 3, pid, selftid, sig);
(gdb) where
#0  0x00003fffb7cd247c in __GI_raise (sig=<optimized out>) at
../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1  0x00003fffb7cd4688 in __GI_abort () at abort.c:90
#2  0x0000000010000740 in strlen (s=<optimized out>) at
/home/seurer/gcc/gcc-test/gcc/testsuite/gcc.c-torture/execute/builtins/lib/strlen.c:12
#3  0x00000000100006c0 in main_test () at
/home/seurer/gcc/gcc-test/gcc/testsuite/gcc.c-torture/execute/builtins/strlen-3.c:64
#4  0x000000001000077c in main () at
/home/seurer/gcc/gcc-test/gcc/testsuite/gcc.c-torture/execute/builtins/lib/main.c:10



r262522 | msebor | 2018-07-09 15:33:48 -0500 (Mon, 09 Jul 2018) | 24 lines

PR middle-end/77357 - strlen of constant strings not folded

gcc/ChangeLog:

        PR middle-end/77357
        PR middle-end/86428
        * builtins.c (c_strlen): Avoid out-of-bounds warnings when
        accessing implicitly initialized array elements.
        * expr.c (string_constant): Handle string initializers of
        character arrays within aggregates.
        * gimple-fold.c (fold_array_ctor_reference): Add argument.
        Store element offset.  As a special case, handle zero size.
        (fold_nonarray_ctor_reference): Same.
        (fold_ctor_reference): Add argument.  Store subobject offset.
        * gimple-fold.h (fold_ctor_reference): Add argument.

gcc/testsuite/ChangeLog:

        PR middle-end/77357
        * gcc.dg/strlenopt-49.c: New test.
        * gcc.dg/strlenopt-50.c: New test.
        * gcc.dg/strlenopt-51.c: New test.
        * gcc.dg/strlenopt-52.c: New test.
>From gcc-bugs-return-609541-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 14:51:10 2018
Return-Path: <gcc-bugs-return-609541-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 41236 invoked by alias); 10 Jul 2018 14:51:10 -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 41148 invoked by uid 55); 10 Jul 2018 14:51:05 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/86445] [9 regression] Missing warning for test case gcc/testsuite/gcc.dg/pr84100.c starting with r262513
Date: Tue, 10 Jul 2018 14:51:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: testsuite
X-Bugzilla-Version: 9.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: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-86445-4-w61y7dRvhU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86445-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86445-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: 2018-07/txt/msg00646.txt.bz2
Content-length: 546

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

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Author: marxin
Date: Tue Jul 10 14:50:28 2018
New Revision: 262540

URL: https://gcc.gnu.org/viewcvs?rev=262540&root=gcc&view=rev
Log:
Change dg-warning to db-bogus in a test-case (PR testsuite/86445).

2018-07-10  Martin Liska  <mliska@suse.cz>

        PR testsuite/86445
        * gcc.dg/pr84100.c: Change it back to dg-bogus.

Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/pr84100.c
>From gcc-bugs-return-609540-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 14:32:59 2018
Return-Path: <gcc-bugs-return-609540-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 58925 invoked by alias); 10 Jul 2018 14:32:58 -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 58866 invoked by uid 55); 10 Jul 2018 14:32:54 -0000
From: "sgk at troutmask dot apl.washington.edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/86450] Bootstrap failure due to -Wabi
Date: Tue, 10 Jul 2018 14:51: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: 9.0
X-Bugzilla-Keywords: build
X-Bugzilla-Severity: blocker
X-Bugzilla-Who: sgk at troutmask dot apl.washington.edu
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-86450-4-LCEm7bDXLc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86450-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86450-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: 2018-07/txt/msg00645.txt.bz2
Content-length: 690

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

--- Comment #3 from Steve Kargl <sgk at troutmask dot apl.washington.edu> ---
On Tue, Jul 10, 2018 at 09:55:15AM +0000, rguenth at gcc dot gnu.org wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86450
> 
> --- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
> Can you check whether removing --enable-maintainer-mode fixes the build?  I've
> not had this issue but I see those Wabi warnings as non-error.
> 

Yes, removing  --enable-maintainer-mode allows the bootstrap to 
complete.  Problem is I need to use that option as I have change
a chnaged a Makefile.am, so need to regenerate the Makefile.in.
>From gcc-bugs-return-609542-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 14:51:36 2018
Return-Path: <gcc-bugs-return-609542-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 41998 invoked by alias); 10 Jul 2018 14:51:36 -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 41959 invoked by uid 48); 10 Jul 2018 14:51:31 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/86445] [9 regression] Missing warning for test case gcc/testsuite/gcc.dg/pr84100.c starting with r262513
Date: Tue, 10 Jul 2018 15:12:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: testsuite
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-86445-4-mPG1f3fEoP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86445-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86445-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: 2018-07/txt/msg00647.txt.bz2
Content-length: 433

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

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

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

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-609543-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 15:12:41 2018
Return-Path: <gcc-bugs-return-609543-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 24864 invoked by alias); 10 Jul 2018 15:12:41 -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 17794 invoked by uid 48); 10 Jul 2018 15:12:37 -0000
From: "janus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/86328] [8/9 Regression] Runtime segfault reading an allocatable class(*) object in allocate statements
Date: Tue, 10 Jul 2018 15:15: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: 8.1.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: janus at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.2
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-86328-4-fiyMWQp8iZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86328-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86328-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: 2018-07/txt/msg00648.txt.bz2
Content-length: 749

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

--- Comment #8 from janus at gcc dot gnu.org ---
Reducing the test case slightly more:


program ptr_alloc

   type :: t
      class(*), allocatable :: val
   end type

   type :: list
      type(t), dimension(:), pointer :: ll
   end type

   integer :: i
   type(list) :: a

   allocate(a%ll(1:2))
   do i = 1,2
      allocate(a%ll(i)%val, source=i)
   end do

   call rrr(a)

contains

   subroutine rrr(a)
      type(list), intent(in) :: a
      class(*), allocatable :: c

      allocate(c, source=a%ll(2)%val)

   end subroutine

end


The bad stuff obviously happens in the allocate statement inside 'rrr'. The
dump for this version is a bit more compact, but still rather cryptic.
>From gcc-bugs-return-609544-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 15:15:54 2018
Return-Path: <gcc-bugs-return-609544-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 8753 invoked by alias); 10 Jul 2018 15:15:53 -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 88963 invoked by uid 48); 10 Jul 2018 15:15:10 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/86462] New: [9 Regression] Quite huge debug info size increase introduced in r262511
Date: Tue, 10 Jul 2018 15:25:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: debug
X-Bugzilla-Version: 9.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: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone
Message-ID: <bug-86462-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: 2018-07/txt/msg00649.txt.bz2
Content-length: 1113

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

            Bug ID: 86462
           Summary: [9 Regression] Quite huge debug info size increase
                    introduced in r262511
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: rguenth at gcc dot gnu.org
  Target Milestone: ---

Buidling induct2.f90 from polyhedron benchmark:
https://www.polyhedron.com/web_images/documents/pb11.zip

$ gfortran induct2.f90 -O2 -g -c && du -hs induct2.o

$ bloaty bad.o -- good.o
     VM SIZE                          FILE SIZE
 ++++++++++++++ GROWING            ++++++++++++++
  [ = ]       0 .rela.debug_ranges +84.5Ki +21e2%
  [ = ]       0 .rela.debug_info   +22.2Ki   +24%
  [ = ]       0 .debug_info        +1.02Ki  +7.5%
  [ = ]       0 .debug_ranges          +36   +78%
  [ = ]       0 .debug_abbrev          +16  +2.5%

  [ = ]       0 TOTAL               +107Ki   +24%
>From gcc-bugs-return-609545-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 15:25:06 2018
Return-Path: <gcc-bugs-return-609545-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 52492 invoked by alias); 10 Jul 2018 15:25:05 -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 52305 invoked by uid 48); 10 Jul 2018 15:24:53 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/86461] [9 regression] test case gcc.c-torture/execute/builtins/strlen-3.c fails starting with r262522
Date: Tue, 10 Jul 2018 16:12:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: testsuite
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on component assigned_to everconfirmed
Message-ID: <bug-86461-4-M3fbX6S5yI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86461-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86461-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: 2018-07/txt/msg00650.txt.bz2
Content-length: 1290

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

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2018-07-10
          Component|middle-end                  |testsuite
           Assignee|unassigned at gcc dot gnu.org      |msebor at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
r262522 tightens up the test to verify that all calls to strlen() are
eliminated.  This is also what happens at all optimization levels for the
x86_64-linux target but not for powerpc64 where at -Og the optimized dump
shows:

  <bb 8> [local count: 214748365]:
  _10 = _3 + 1;
  x = _10;
  x.9_11 = (unsigned int) _3;
  _20 = x.9_11 & 7;
  _12 = (sizetype) _20;
  _13 = &larger + _12;
  _14 = strlen (_13);
  if (_14 != 5)
    goto <bb 9>; [0.00%]
  else
    goto <bb 10>; [99.96%]

  <bb 9> [count: 0]:
  abort ();

Besides fixing the test (the runtime test harness ignored dg-options in these
tests) I need to figure out what prevents the folding at -Og.
>From gcc-bugs-return-609546-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 16:12:44 2018
Return-Path: <gcc-bugs-return-609546-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 96912 invoked by alias); 10 Jul 2018 16:12:44 -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 96873 invoked by uid 48); 10 Jul 2018 16:12:39 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/86460] GCC 8.1 cross-compiler fails to compile linux kernel
Date: Tue, 10 Jul 2018 16:13: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: 8.1.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia at gcc dot gnu.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-86460-4-OB9JowUMBQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86460-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86460-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: 2018-07/txt/msg00651.txt.bz2
Content-length: 250

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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The warning/error message seems clear to me that this is a bug inside the Linux
kernel and should be reported to them instead.
>From gcc-bugs-return-609547-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 16:13:46 2018
Return-Path: <gcc-bugs-return-609547-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 98589 invoked by alias); 10 Jul 2018 16:13:45 -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 98548 invoked by uid 48); 10 Jul 2018 16:13:41 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/86460] GCC 8.1 cross-compiler fails to compile linux kernel
Date: Tue, 10 Jul 2018 16:17: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: 8.1.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
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 resolution
Message-ID: <bug-86460-4-hjQMygD2eu@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86460-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86460-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: 2018-07/txt/msg00652.txt.bz2
Content-length: 426

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

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

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
.
>From gcc-bugs-return-609548-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 16:17:40 2018
Return-Path: <gcc-bugs-return-609548-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 503 invoked by alias); 10 Jul 2018 16:17: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 128507 invoked by uid 48); 10 Jul 2018 16:17:35 -0000
From: "robert.j.farmer37 at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/86463] New: Slow compile with -ggdb and optimizations
Date: Tue, 10 Jul 2018 16:29:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
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: robert.j.farmer37 at gmail dot com
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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created
Message-ID: <bug-86463-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: 2018-07/txt/msg00653.txt.bz2
Content-length: 5146

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

            Bug ID: 86463
           Summary: Slow compile with -ggdb and optimizations
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: robert.j.farmer37 at gmail dot com
  Target Milestone: ---

Created attachment 44377
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44377&action=edit
Gzipped test case

So the problem i have is that i have a large file with many variable
assignments that takes a long time. Perhaps not unexpected as the file is large
(~5000 variable assignments) but if the file is split into smaller chunks, then
the performance shows a non-linear scaling with file size.

Attached is a tarball that contains:
largeFile.f90 the file to test, it includes one of the following files:
all_vars.inc which does variable assignments for all 5000 variables
top_vars.inc and bottom_vars.inc comment out half the variables from
all_vars.inc (to test scaling behavior)
and finally
definitions.inc provides the variable types

When compiling largeFile.f90 with both -ggdb and either -O1, -O2, -O3 and
including all_vars.inc i get the following timings:

time gfortran -ggdb -O0 -c largeFile.f90  0m0.376s
time gfortran -ggdb -O1 -c largeFile.f90 >8m (Gave up)
time gfortran -ggdb -O2 -c largeFile.f90 2m13.525s
time gfortran -ggdb -O3 -c largeFile.f90 2m31.139s

So -O1 shows very bad performance while -O2 and -O3 show ~2m to compile the
file

time gfortran -O0 -c largeFile.f90 0m0.326s
time gfortran -O1 -c largeFile.f90 0m2.618s
time gfortran -O2 -c largeFile.f90 0m4.276s
time gfortran -O3 -c largeFile.f90 0m22.745s

Shows its related to using the -ggdb flag

If i include only the top_vars.inc (in largeFile.f90) i get 35s and just
including bottom_vars.inc i get 11s (with -ggdb -O2) so that is a total of 46s
for the combination of the split files while the whole file takes 2m13s (using
all_vars.inc). So splitting the file into two chunks halves the total runtime.

This is tested with gfortran 8.1.1 but 7.2.0 also shows the problem.

While looking at other bugs, 59868 suggested -fno-var-tracking which does work
here and brings the time down to ~1s with:
gfortran -fno-var-tracking -ggdb -O2 -c largeFile.f90


gfortran -v -save-temps -ggdb -O2 -c largeFile.f90 
Using built-in specs.
COLLECT_GCC=/usr/bin/gfortran
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap
--enable-languages=c,c++,fortran,objc,obj-c++,ada,go,lto --prefix=/usr
--mandir=/usr/share/man --infodir=/usr/share/info
--with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared
--enable-threads=posix --enable-checking=release --enable-multilib
--with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions
--enable-gnu-unique-object --enable-linker-build-id
--with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin
--enable-initfini-array --with-isl --enable-libmpx
--enable-offload-targets=nvptx-none --without-cuda-driver
--enable-gnu-indirect-function --enable-cet --with-tune=generic
--with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 8.1.1 20180502 (Red Hat 8.1.1-1) (GCC) 
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-ggdb' '-O2' '-c' '-mtune=generic'
'-march=x86-64'
 /usr/libexec/gcc/x86_64-redhat-linux/8/f951 largeFile.f90 -quiet -dumpbase
largeFile.f90 -mtune=generic -march=x86-64 -auxbase largeFile -ggdb -O2
-version -fintrinsic-modules-path /usr/lib/gcc/x86_64-redhat-linux/8/finclude
-o largeFile.s
GNU Fortran (GCC) version 8.1.1 20180502 (Red Hat 8.1.1-1)
(x86_64-redhat-linux)
        compiled by GNU C version 8.1.1 20180502 (Red Hat 8.1.1-1), GMP version
6.1.2, MPFR version 3.1.6-p2, MPC version 1.0.2, isl version isl-0.16.1-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU Fortran2008 (GCC) version 8.1.1 20180502 (Red Hat 8.1.1-1)
(x86_64-redhat-linux)
        compiled by GNU C version 8.1.1 20180502 (Red Hat 8.1.1-1), GMP version
6.1.2, MPFR version 3.1.6-p2, MPC version 1.0.2, isl version isl-0.16.1-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-ggdb' '-O2' '-c' '-mtune=generic'
'-march=x86-64'
 as -v --64 -o largeFile.o largeFile.s
GNU assembler version 2.29.1 (x86_64-redhat-linux) using BFD version version
2.29.1-23.fc28
COMPILER_PATH=/usr/libexec/gcc/x86_64-redhat-linux/8/:/usr/libexec/gcc/x86_64-redhat-linux/8/:/usr/libexec/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/8/:/usr/lib/gcc/x86_64-redhat-linux/
LIBRARY_PATH=/usr/lib/gcc/x86_64-redhat-linux/8/:/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/lib/gcc/x86_64-redhat-linux/8/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-ggdb' '-O2' '-c' '-mtune=generic'
'-march=x86-64'
>From gcc-bugs-return-609549-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 16:29:33 2018
Return-Path: <gcc-bugs-return-609549-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 72919 invoked by alias); 10 Jul 2018 16:29: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 70822 invoked by uid 55); 10 Jul 2018 16:29:28 -0000
From: "rguenther at suse dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/86462] [9 Regression] Quite huge debug info size increase introduced in r262511
Date: Tue, 10 Jul 2018 16:31: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenther at suse dot de
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-86462-4-bQQ8nJCFrS@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86462-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86462-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: 2018-07/txt/msg00654.txt.bz2
Content-length: 1484

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

--- Comment #1 from rguenther at suse dot de <rguenther at suse dot de> ---
On July 10, 2018 5:15:08 PM GMT+02:00, "marxin at gcc dot gnu.org"
<gcc-bugzilla@gcc.gnu.org> wrote:
>https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86462
>
>            Bug ID: 86462
>           Summary: [9 Regression] Quite huge debug info size increase
>                    introduced in r262511
>           Product: gcc
>           Version: 9.0
>            Status: UNCONFIRMED
>          Severity: normal
>          Priority: P3
>         Component: debug
>          Assignee: unassigned at gcc dot gnu.org
>          Reporter: marxin at gcc dot gnu.org
>                CC: rguenth at gcc dot gnu.org
>  Target Milestone: ---
>
>Buidling induct2.f90 from polyhedron benchmark:
>https://www.polyhedron.com/web_images/documents/pb11.zip
>
>$ gfortran induct2.f90 -O2 -g -c && du -hs induct2.o
>
>$ bloaty bad.o -- good.o
>     VM SIZE                          FILE SIZE
> ++++++++++++++ GROWING            ++++++++++++++
>  [ = ]       0 .rela.debug_ranges +84.5Ki +21e2%
>  [ = ]       0 .rela.debug_info   +22.2Ki   +24%
>  [ = ]       0 .debug_info        +1.02Ki  +7.5%
>  [ = ]       0 .debug_ranges          +36   +78%
>  [ = ]       0 .debug_abbrev          +16  +2.5%
>
>  [ = ]       0 TOTAL               +107Ki   +24%

Interesting. This either means we lost info before or we are outputting scopes
early that we do not need.
>From gcc-bugs-return-609550-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 16:31:28 2018
Return-Path: <gcc-bugs-return-609550-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 102963 invoked by alias); 10 Jul 2018 16:31:15 -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 88370 invoked by uid 48); 10 Jul 2018 16:30:51 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82711] -Wignored-qualifiers could be moved into -Wextra
Date: Tue, 10 Jul 2018 16:37: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: 8.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.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: cc
Message-ID: <bug-82711-4-zvDxHFdAAM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82711-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82711-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: 2018-07/txt/msg00655.txt.bz2
Content-length: 634

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

Martin Sebor <msebor at gcc dot gnu.org> changed:

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

--- Comment #5 from Martin Sebor <msebor at gcc dot gnu.org> ---
-Wignored-qualifiers has been in -Wextra since r131499.  Based on the Firefox
review I think the request is actually to remove the warning from -Wextra (or
they thought it was in -Wall and were asking to move it from there and put it
under -Wextra).
>From gcc-bugs-return-609552-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 16:42:07 2018
Return-Path: <gcc-bugs-return-609552-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 41280 invoked by alias); 10 Jul 2018 16:42:07 -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 41209 invoked by uid 48); 10 Jul 2018 16:42:03 -0000
From: "pault at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/86328] [8/9 Regression] Runtime segfault reading an allocatable class(*) object in allocate statements
Date: Tue, 10 Jul 2018 16:42: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: 8.1.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pault at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.2
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-86328-4-MA6BJZslqp@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86328-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86328-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: 2018-07/txt/msg00657.txt.bz2
Content-length: 1083

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

--- Comment #9 from Paul Thomas <pault at gcc dot gnu.org> ---
(In reply to janus from comment #8)
> Reducing the test case slightly more:
> 
> 
> program ptr_alloc
> 
>    type :: t
>       class(*), allocatable :: val
>    end type
> 
>    type :: list
>       type(t), dimension(:), pointer :: ll
>    end type
> 
>    integer :: i
>    type(list) :: a
> 
>    allocate(a%ll(1:2))
>    do i = 1,2
>       allocate(a%ll(i)%val, source=i)
>    end do
> 
>    call rrr(a)
> 
> contains
>  
>    subroutine rrr(a)
>       type(list), intent(in) :: a
>       class(*), allocatable :: c
> 
>       allocate(c, source=a%ll(2)%val)
> 
>    end subroutine
> 
> end
> 
> 
> The bad stuff obviously happens in the allocate statement inside 'rrr'. The
> dump for this version is a bit more compact, but still rather cryptic.

Somewhat unexpectedly, replacing the allocate in 'rrr' with:
c=a%ll(2)%val

works just fine. This is an OK workaround and gives me time to fix the problem.

Cheers

Paul
>From gcc-bugs-return-609551-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 16:37:50 2018
Return-Path: <gcc-bugs-return-609551-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 122215 invoked by alias); 10 Jul 2018 16:37:50 -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 122187 invoked by uid 48); 10 Jul 2018 16:37:46 -0000
From: "gareth@ignition-web.co.uk" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/86464] New: Delegating constructor causes error if parameter has same name as class
Date: Tue, 10 Jul 2018 16:42:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: gareth@ignition-web.co.uk
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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-86464-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: 2018-07/txt/msg00656.txt.bz2
Content-length: 895

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

            Bug ID: 86464
           Summary: Delegating constructor causes error if parameter has
                    same name as class
           Product: gcc
           Version: 8.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gareth@ignition-web.co.uk
  Target Milestone: ---

struct foo
{
    foo( foo const & ) = default;
    foo( foo const & foo, int )
        : foo{ foo }
        {}
    foo( foo const & foo, char )
        : foo::foo{ foo } // added a redundant type qualifier
        {}
};

<source>: In constructor 'foo::foo(const foo&, int)':

<source>:5:11: error: 'struct foo foo::foo' is not a non-static data member of
'foo'

         : foo{ foo }

           ^~~

Compiler returned: 1
>From gcc-bugs-return-609553-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 16:42:59 2018
Return-Path: <gcc-bugs-return-609553-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 45607 invoked by alias); 10 Jul 2018 16:42:59 -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 45564 invoked by uid 48); 10 Jul 2018 16:42:55 -0000
From: "nightstrike at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82711] -Wignored-qualifiers could be moved into -Wextra
Date: Tue, 10 Jul 2018 16:47: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: 8.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: nightstrike at gmail dot com
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-82711-4-kgC6Tgu0xy@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82711-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82711-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: 2018-07/txt/msg00658.txt.bz2
Content-length: 768

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

--- Comment #6 from nightstrike <nightstrike at gmail dot com> ---
(In reply to Martin Sebor from comment #5)
> -Wignored-qualifiers has been in -Wextra since r131499.  Based on the
> Firefox review I think the request is actually to remove the warning from
> -Wextra (or they thought it was in -Wall and were asking to move it from
> there and put it under -Wextra).

Maybe they compile with -Wextra and don't know it.... no idea.  However,
comment 8 at https://bugzilla.mozilla.org/show_bug.cgi?id=1411034#c8 says:

"It should probably be enabled only in -Wextra"

Also, the title of the bug asks for it to be moved to -Wextra.  It's in there,
so........   I think it's correct to just close the PR :) :) :)
>From gcc-bugs-return-609554-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 16:47:40 2018
Return-Path: <gcc-bugs-return-609554-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 50723 invoked by alias); 10 Jul 2018 16:47:40 -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 50658 invoked by uid 48); 10 Jul 2018 16:47:35 -0000
From: "sylvestre at debian dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/82711] -Wignored-qualifiers could be moved into -Wextra
Date: Tue, 10 Jul 2018 16:53: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: 8.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: sylvestre at debian dot org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
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 resolution
Message-ID: <bug-82711-4-fse7fdg9ok@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82711-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82711-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: 2018-07/txt/msg00659.txt.bz2
Content-length: 470

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

Sylvestre Ledru <sylvestre at debian dot org> changed:

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

--- Comment #7 from Sylvestre Ledru <sylvestre at debian dot org> ---
Indeed, thanks for implementing the change!
>From gcc-bugs-return-609555-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 16:53:21 2018
Return-Path: <gcc-bugs-return-609555-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 64987 invoked by alias); 10 Jul 2018 16:53:21 -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 64933 invoked by uid 48); 10 Jul 2018 16:53:15 -0000
From: "proski at gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: =?UTF-8?B?W0J1ZyBjKysvODY0NjVdIE5ldzogQysrMTcgPG9wdGlvbmFsPiB0cmlnZ2Vy?= =?UTF-8?B?czog4oCYPGFub255bW91cz7igJkgbWF5IGJlIHVzZWQgdW5pbml0aWFsaXpl?= =?UTF-8?B?ZCBpbiB0aGlzIGZ1bmN0aW9u?Date: Tue, 10 Jul 2018 17:02:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: proski at gnu 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created
Message-ID: <bug-86465-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: 2018-07/txt/msg00660.txt.bz2
Content-length: 1473

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

            Bug ID: 86465
           Summary: C++17 <optional> triggers: ‘<anonymous>’ may be used
                    uninitialized in this function
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: proski at gnu dot org
  Target Milestone: ---

Created attachment 44378
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44378&action=edit
Preprocessed test case

The attached file triggers a warning:

$ g++ -std=c++17 -Wall -O2 -c optional.cpp -save-temps
optional.cpp: In member function ‘virtual std::optional<int>
Child::get_hairy_value()’:
optional.cpp:20:25: warning: ‘<anonymous>’ may be used uninitialized in this
function [-Wmaybe-uninitialized]
                 return {};
                         ^

The issue is observed with gcc 8 as packaged by Fedora
(gcc-8.1.1-1.fc28.x86_64) and with the current gcc trunk (commit
c85ec25b97e485c6f3493fc42c473db2a11ac9ea). gcc 7.3.0 doesn't exhibit the bug.

Interestingly, the preprocessed file generated by gcc 7.3.0 doesn't trigger the
warning in gcc 8 or 9.

Also, the warning goes away if experimental/optional is used, so C++17 is
required to reproduce it.

Optimization (at least -O1) is required to trigger the warning.
>From gcc-bugs-return-609556-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 17:02:12 2018
Return-Path: <gcc-bugs-return-609556-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 78459 invoked by alias); 10 Jul 2018 17:02: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 77849 invoked by uid 48); 10 Jul 2018 17:02:07 -0000
From: "proski at gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81513] __has_cpp_attribute returns non-zero in C++03 mode, but attributes don't work
Date: Tue, 10 Jul 2018 17:14: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: 7.1.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: proski at gnu dot org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
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 resolution
Message-ID: <bug-81513-4-dhYC8ayLQI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81513-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81513-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: 2018-07/txt/msg00661.txt.bz2
Content-length: 569

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

Pavel Roskin <proski at gnu dot org> changed:

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

--- Comment #5 from Pavel Roskin <proski at gnu dot org> ---
After reading the discussion, it became clear to me that it's a corner case
that is not really worth spending more time on. I'm marking the issue as
resolved.
>From gcc-bugs-return-609557-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 17:14:44 2018
Return-Path: <gcc-bugs-return-609557-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 46527 invoked by alias); 10 Jul 2018 17:14:44 -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 46491 invoked by uid 48); 10 Jul 2018 17:14:39 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/86462] [9 Regression] Quite huge debug info size increase introduced in r262511
Date: Tue, 10 Jul 2018 17:41: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin 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: bug_status everconfirmed
Message-ID: <bug-86462-4-IBgGcOuaJF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86462-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86462-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: 2018-07/txt/msg00662.txt.bz2
Content-length: 599

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
> 
> Interesting. This either means we lost info before or we are outputting
> scopes early that we do not need.

Yes, mentioned sections were really zero sized. That looks weird.
>From gcc-bugs-return-609558-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 17:41:17 2018
Return-Path: <gcc-bugs-return-609558-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 76640 invoked by alias); 10 Jul 2018 17:41:16 -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 76592 invoked by uid 48); 10 Jul 2018 17:41:11 -0000
From: "craig.topper at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/86466] New: [X86] gcc checks the range of the immediate to _mm_blend_ps, but not _mm_blend_epi32
Date: Tue, 10 Jul 2018 17:42:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: craig.topper at gmail dot com
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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-86466-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: 2018-07/txt/msg00663.txt.bz2
Content-length: 813

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

            Bug ID: 86466
           Summary: [X86] gcc checks the range of the immediate to
                    _mm_blend_ps, but not _mm_blend_epi32
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: craig.topper at gmail dot com
  Target Milestone: ---

These intrinsics are both blends of four 32-bit values. gcc seems to check the
range for the floating point version, but not the integer version.

Perhaps this was overlooked when _mm_blend_epi32 was added since it was added
with avx2 while the floating point was added with sse4.1

Test case
https://godbolt.org/g/9QGm9j
>From gcc-bugs-return-609559-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 17:42:27 2018
Return-Path: <gcc-bugs-return-609559-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 78100 invoked by alias); 10 Jul 2018 17:42: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 78037 invoked by uid 48); 10 Jul 2018 17:42:23 -0000
From: "qinzhao at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/86467] New: inlining strcmp with small known length array
Date: Tue, 10 Jul 2018 17:46:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: qinzhao at gcc dot gnu.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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-86467-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: 2018-07/txt/msg00664.txt.bz2
Content-length: 925

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

            Bug ID: 86467
           Summary: inlining strcmp with small known length array
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: qinzhao at gcc dot gnu.org
  Target Milestone: ---

from Martin Sebor:

an enhancement to this optimization implemented for 78809 that might
be worth considering is inlining even non-constant calls
with array arguments whose size is no greater than the limit.
As in:

 extern char a[4], *b;

 int n = strcmp (a, b);

Because strcmp arguments are required to be nul-terminated
strings, a's length above must be at most 3.  This is analogous
to similar optimizations GCC performs, such as folding to zero
calls to strlen() with one-element arrays.
>From gcc-bugs-return-609560-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 17:46:17 2018
Return-Path: <gcc-bugs-return-609560-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 119584 invoked by alias); 10 Jul 2018 17:46:17 -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 119482 invoked by uid 48); 10 Jul 2018 17:46:12 -0000
From: "rearnsha at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/86383] [9 Regression] arm-netbsdelf cross compiler fails in selftests
Date: Tue, 10 Jul 2018 17:49: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rearnsha 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: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-86383-4-KemZKNobHV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86383-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86383-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: 2018-07/txt/msg00665.txt.bz2
Content-length: 798

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

--- Comment #6 from Richard Earnshaw <rearnsha at gcc dot gnu.org> ---
(In reply to coypu from comment #5)
> (In reply to Richard Earnshaw from comment #2)
> > I'm not sure how relevant the netbsd-elf port is these days.  I believe
> > they've now moved onto an EABI based ABI.  But no GCC port of that has been
> > contributed.
> 
> hi,
> 
> I have a big working patch for netbsd/arm eabi.
> I didn't test it against trunk/clean it up yet.
> (https://v4.freshbsd.org/commit/netbsd/pkgsrc/yfUHHZvopo2aGFGA)
> 
> can I assign this to myself?

I think it would be better to just post it to GCC patches.  This PR is
specifically about the existing netbsd-elf port and shouldn't be conflated with
contributions of a new netbsd-eabi port.
>From gcc-bugs-return-609561-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 10 17:49:05 2018
Return-Path: <gcc-bugs-return-609561-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 123079 invoked by alias); 10 Jul 2018 17:49:05 -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 123057 invoked by uid 89); 10 Jul 2018 17:49:03 -0000
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-6.9 required=5.0 testsºYES_00,GIT_PATCH_2,KAM_SHORT,SPF_PASS autolearn=ham version=3.3.2 spammy=Shark, HTo:D*gmx.com
X-HELO: foss.arm.com
Received: from foss.arm.com (HELO foss.arm.com) (217.140.101.70) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 10 Jul 2018 17:48:54 +0000
Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249])	by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 03B491AED;	Tue, 10 Jul 2018 10:48:49 -0700 (PDT)
Received: from e120077-lin.cambridge.arm.com (e120077-lin.cambridge.arm.com [10.2.206.23])	by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 349533F589;	Tue, 10 Jul 2018 10:48:48 -0700 (PDT)
Subject: Re: [Bug target/86383] [9 Regression] arm-netbsdelf cross compiler fails in selftests
To: Kamil Rytarowski <n54@gmx.com>, "rearnsha at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>, gcc-bugs@gcc.gnu.org
References: <bug-86383-4@http.gcc.gnu.org/bugzilla/> <bug-86383-4-roe7g6Jp7o@http.gcc.gnu.org/bugzilla/> <ab84a63d-cc85-0cfd-a3a6-d6deab95488c@gmx.com> <471e8255-162f-4cdd-45bc-274271cfe973@arm.com> <11bdfd68-ac9b-fd06-81b1-df39b5dae66d@gmx.com> <b58fe356-df19-ef9e-a0e2-00d4f1d7612b@arm.com> <9497aebc-934f-1277-c09a-87d633dfcabf@gmx.com>
From: "Richard Earnshaw (lists)" <Richard.Earnshaw@arm.com>
Openpgp: preference=signencrypt
Message-ID: <bfeb23a5-d883-020a-6350-b27b21479274@arm.com>
Date: Tue, 10 Jul 2018 17:49:00 -0000
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0
MIME-Version: 1.0
In-Reply-To: <9497aebc-934f-1277-c09a-87d633dfcabf@gmx.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-SW-Source: 2018-07/txt/msg00666.txt.bz2
Content-length: 1748

On 10/07/18 10:57, Kamil Rytarowski wrote:
> On 06.07.2018 15:26, Richard Earnshaw (lists) wrote:
>> On 06/07/18 12:11, Kamil Rytarowski wrote:
>>> On 06.07.2018 12:38, Richard Earnshaw (lists) wrote:
>>>> On 06/07/18 11:32, Kamil Rytarowski wrote:
>>>>> On 04.07.2018 20:55, rearnsha at gcc dot gnu.org wrote:
>>>>>> https://gcc.gnu.org/bugzilla/show_bug.cgi?id†383
>>>>>>
>>>>>> --- Comment #2 from Richard Earnshaw <rearnsha at gcc dot gnu.org> ---
>>>>>> I'm not sure how relevant the netbsd-elf port is these days.  I believe they've
>>>>>> now moved onto an EABI based ABI.  But no GCC port of that has been
>>>>>> contributed.
>>>>>>
>>>>>
>>>>> NetBSD switched on newer ARM CPUs to EABI and keeps compat with OABI. A
>>>>> user is free to build either EABI and OABI for ARMv4+ CPUs. Older pre
>>>>> ARMv4 CPUs use OABI only.
>>>>>
>>>>
>>>> GCC-9 will drop support for pre-armv4 CPUs.  Such support has been
>>>> marked as deprecated for about 3 years now.
>>>>
>>>
>>> We verify these ports on real hardware.
>>>
>>> NetBSD/shark is prepared to be switched to Clang/LLVM as GCC is
>>> obsoleting it and surprisingly LLVM soon might have support for a wider
>>> range of ARM CPUs.
>>>
>>
>> Shark's use strongARM cpus, which are ARMv4.  That's not been obsoleted,
>> but it is considered deprecated these days.
>>
>
> Shark doesn't use all instructions that are generated by GCC (I forgot
> the CPU property name of it) and thus it has to be switched to Clang/LLVM.
>

You're not making sense.  Please be more explicit as to what you mean
and give an example.  GCC can generate instructions for ARMv4 and
StrongARM (used by the shark) is an ARMv4 part.

I've run gcc generated code on shark boards for years and not seen problems.

R.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-07-10  9:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-86452-4@http.gcc.gnu.org/bugzilla/>
2018-07-10  9:58 ` [Bug debug/86452] ICE in force_decl_die, at dwarf2out.c:25922 with -g1 and -flto rguenth 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).