public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/86651] [8/9 Regression] lto-wrapper.exe: fatal error: simple_object_copy_lto_debug_sections not implemented: Invalid argument
       [not found] <bug-86651-4@http.gcc.gnu.org/bugzilla/>
@ 2018-08-08 18:19 ` jwjagersma at gmail dot com
  0 siblings, 0 replies; only message in thread
From: jwjagersma at gmail dot com @ 2018-08-08 18:19 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: 201231 bytes --]

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

--- Comment #17 from jwjagersma at gmail dot com ---
If anyone opens a new PR, please cc me. I am unable to contribute right now due
to some health issues.
>From gcc-bugs-return-612416-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 08 18:31:29 2018
Return-Path: <gcc-bugs-return-612416-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 8487 invoked by alias); 8 Aug 2018 18:31:29 -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 8300 invoked by uid 48); 8 Aug 2018 18:31:24 -0000
From: "amonakov at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82418] Division on a constant is suboptimal because of not using imul instruction
Date: Wed, 08 Aug 2018 18:31: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: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: amonakov 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: cc
Message-ID: <bug-82418-4-5W6FVgVCEC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82418-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82418-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-08/txt/msg00705.txt.bz2
Content-length: 2894

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

Alexander Monakov <amonakov at gcc dot gnu.org> changed:

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

--- Comment #6 from Alexander Monakov <amonakov at gcc dot gnu.org> ---
(the 'divx' function in comment 5 does not implement division by 100)

I'd like to see GCC improve here, so I looked at how this could be fixed. I'm
afraid adjusting expand_divmod to select the cheaper alternative on x86 is
going to be too complicated. I think it may be reasonable to conceal the 32x32
mul-highpart pattern on x86 from expand_divmod, so it uses the 32x32->64
widening multiply which leads to optimal code.

I also think the 32x32 mul-highpart pattern is not very useful outside of magic
division by constants, so concealing it altogether may be acceptable if no
better solution is available.

(to recap, we want 64-bit imul here rather than 32-bit widening mul with result
in edx:eax, because imul has better latency and throughput, less regalloc
constraints, and doesn't need a register to hold the immediate)

Patch I'm testing to disallow 32x32 mul-highpart on 64-bit x86:

--- a/gcc/config/i386/i386.md
+++ b/gcc/config/i386/i386.md
@@ -1042,6 +1042,10 @@ (define_mode_iterator SWIM248 [(HI "TARGET_HIMODE_MATH")
 (define_mode_iterator DWI [(DI "!TARGET_64BIT")
                           (TI "TARGET_64BIT")])

+;; Widest single word integer modes.
+(define_mode_iterator SWI48W [(SI "!TARGET_64BIT")
+                             (DI "TARGET_64BIT")])
+
 ;; GET_MODE_SIZE for selected modes.  As GET_MODE_SIZE is not
 ;; compile time constant, it is faster to use <MODE_SIZE> than
 ;; GET_MODE_SIZE (<MODE>mode).  For XFmode which depends on
@@ -7792,16 +7796,16 @@ (define_insn "*<u>mulqihi3_1"
    (set_attr "mode" "QI")])

 (define_expand "<s>mul<mode>3_highpart"
-  [(parallel [(set (match_operand:SWI48 0 "register_operand")
-                  (truncate:SWI48
+  [(parallel [(set (match_operand:SWI48W 0 "register_operand")
+                  (truncate:SWI48W
                     (lshiftrt:<DWI>
                       (mult:<DWI>
                         (any_extend:<DWI>
-                          (match_operand:SWI48 1 "nonimmediate_operand"))
+                          (match_operand:SWI48W 1 "nonimmediate_operand"))
                         (any_extend:<DWI>
-                          (match_operand:SWI48 2 "register_operand")))
+                          (match_operand:SWI48W 2 "register_operand")))
                       (match_dup 3))))
-             (clobber (match_scratch:SWI48 4))
+             (clobber (match_scratch:SWI48W 4))
              (clobber (reg:CC FLAGS_REG))])]
   ""
   "operands[3] = GEN_INT (GET_MODE_BITSIZE (<MODE>mode));")
>From gcc-bugs-return-612417-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 08 18:44:05 2018
Return-Path: <gcc-bugs-return-612417-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 81660 invoked by alias); 8 Aug 2018 18:44: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 80315 invoked by uid 48); 8 Aug 2018 18:44:01 -0000
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/82418] Division on a constant is suboptimal because of not using imul instruction
Date: Wed, 08 Aug 2018 18:44: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: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ubizjak 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-82418-4-Z8Qc1kfLlW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82418-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82418-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-08/txt/msg00706.txt.bz2
Content-length: 368

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

--- Comment #7 from Uroš Bizjak <ubizjak at gmail dot com> ---
(In reply to Alexander Monakov from comment #6)

> +;; Widest single word integer modes.
> +(define_mode_iterator SWI48W [(SI "!TARGET_64BIT")
> +                             (DI "TARGET_64BIT")])

Please use existing DWIH mode iterator instead.
>From gcc-bugs-return-612418-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 08 19:49:13 2018
Return-Path: <gcc-bugs-return-612418-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 120709 invoked by alias); 8 Aug 2018 19:49:13 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 120166 invoked by uid 48); 8 Aug 2018 19:49:08 -0000
From: "janus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/86893] New: implement F202x .andthen. / .orelse. operators
Date: Wed, 08 Aug 2018 19:49: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: janus 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-86893-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-08/txt/msg00707.txt.bz2
Content-length: 1171

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

            Bug ID: 86893
           Summary: implement F202x .andthen. / .orelse. operators
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: janus at gcc dot gnu.org
  Target Milestone: ---

The .and. / .or. operators in the current F2018 standard do not make any
guarantees about whether any of the arguments is required to be evaluated, or
is required to  be optimized out.

There are rumors that new "short-circuiting" operators might be part of an
upcoming F202x standard. Those could be named .andthen., .andelse., .orelse. or
similar. Alternatively one could use C-style operators (&& and ||).

The new operators would be guaranteed to do left-to-right short-circuiting,
i.e. the second operand will not be evaluated if the value of the first one
already determines the final result.

Consequently the old .and. / .or. operators would be guaranteed to *not* do
short-circuiting (or only in cases where it makes no difference).
>From gcc-bugs-return-612419-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 08 20:02:03 2018
Return-Path: <gcc-bugs-return-612419-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 102728 invoked by alias); 8 Aug 2018 20:02:02 -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 102621 invoked by uid 55); 8 Aug 2018 20:01:58 -0000
From: "schwab at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/46179] Codegen/TLS: invalid assembler syntax
Date: Wed, 08 Aug 2018 20:02:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 4.5.2
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: schwab 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: 4.6.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-46179-4-P9lwC5v2F7@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-46179-4@http.gcc.gnu.org/bugzilla/>
References: <bug-46179-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-08/txt/msg00708.txt.bz2
Content-length: 897

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

--- Comment #13 from Andreas Schwab <schwab at gcc dot gnu.org> ---
Author: schwab
Date: Wed Aug  8 20:01:26 2018
New Revision: 263432

URL: https://gcc.gnu.org/viewcvs?rev=263432&root=gcc&view=rev
Log:
m68k: handle more cases of TLS symbols with offset

PR target/46179
* config/m68k/m68k.h (FINAL_PRESCAN_INSN): Don't define.
* config/m68k/m68k.c (handle_move_double): Don't call
m68k_final_prescan_insn.
(m68k_adjust_decorated_operand): Renamed from
m68k_final_prescan_insn, remove first and third operand and
simplify.
(print_operand): Call it.
(print_operand_address): Call it.

PR target/46179
* gcc.target/m68k/tls-dimode.c: New file.

Added:
    trunk/gcc/testsuite/gcc.target/m68k/tls-dimode.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/m68k/m68k.c
    trunk/gcc/config/m68k/m68k.h
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-612420-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 08 20:40:20 2018
Return-Path: <gcc-bugs-return-612420-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 38932 invoked by alias); 8 Aug 2018 20:40:20 -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 36226 invoked by uid 48); 8 Aug 2018 20:40:15 -0000
From: "segher at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/86882] [9 Regression] ICE in reg_overlap_mentioned_p, at rtlanal.c:1873
Date: Wed, 08 Aug 2018 20:40:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: segher 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-86882-4-FcFE8sjoqZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86882-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86882-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-08/txt/msg00709.txt.bz2
Content-length: 228

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

--- Comment #5 from Segher Boessenkool <segher at gcc dot gnu.org> ---
So what is wrong about that?  CONST_INTs are sign-extended always, so
0xffffffffffffff00 is just fine?
>From gcc-bugs-return-612421-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 08 20:54:37 2018
Return-Path: <gcc-bugs-return-612421-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 100815 invoked by alias); 8 Aug 2018 20:54: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 100678 invoked by uid 48); 8 Aug 2018 20:54:31 -0000
From: "segher at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/86892] RTL CSE  commoning trivial constants across call and/or too early
Date: Wed, 08 Aug 2018 20:54:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: segher 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 cf_reconfirmed_on everconfirmed
Message-ID: <bug-86892-4-YbkQIZOgvq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86892-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86892-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-08/txt/msg00710.txt.bz2
Content-length: 563

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

Segher Boessenkool <segher at gcc dot gnu.org> changed:

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

--- Comment #1 from Segher Boessenkool <segher at gcc dot gnu.org> ---
If you use another constant instead of 0, it fails on most platforms. 
Confirmed.
>From gcc-bugs-return-612422-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 08 21:25:54 2018
Return-Path: <gcc-bugs-return-612422-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 113569 invoked by alias); 8 Aug 2018 21:25: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 113509 invoked by uid 48); 8 Aug 2018 21:25:49 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/86772] [meta-bug] tracking port status for CVE-2017-5753
Date: Wed, 08 Aug 2018 21:25: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: meta-bug
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-86772-4-v8faaxZYqJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86772-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86772-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-08/txt/msg00711.txt.bz2
Content-length: 475

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

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

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

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
.
>From gcc-bugs-return-612423-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 09 00:31:36 2018
Return-Path: <gcc-bugs-return-612423-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 10171 invoked by alias); 9 Aug 2018 00:31: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 10111 invoked by uid 48); 9 Aug 2018 00:31:31 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/86894] New: error for a zero-length array initialized with empty braced list
Date: Thu, 09 Aug 2018 00:31: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: 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-86894-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-08/txt/msg00712.txt.bz2
Content-length: 938

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

            Bug ID: 86894
           Summary: error for a zero-length array initialized with empty
                    braced list
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: msebor at gcc dot gnu.org
  Target Milestone: ---

As discussed in the review at
https://gcc.gnu.org/ml/gcc-patches/2018-08/msg00601.html, when -Wpedantic is
used, GCC rejects the following program with a hard error when it should be
accepted with a pedantic warning.

$ cat e.c && gcc -S -Wall -Wextra -Wpedantic e.c
char a[] = { };
e.c:1:12: warning: ISO C forbids empty initializer braces [-Wpedantic]
 char a[] = { };
            ^
e.c:1:6: error: zero or negative size array ‘a’
 char a[] = { };
      ^
>From gcc-bugs-return-612424-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 09 01:22:10 2018
Return-Path: <gcc-bugs-return-612424-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 113537 invoked by alias); 9 Aug 2018 01:22: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 113495 invoked by uid 48); 9 Aug 2018 01:22:05 -0000
From: "zhonghao at pku dot org.cn" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/86503] Segmentation fault signal terminated
Date: Thu, 09 Aug 2018 01:22: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.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: zhonghao at pku dot org.cn
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-86503-4-gpwxY3Qvzm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86503-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86503-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-08/txt/msg00713.txt.bz2
Content-length: 1185

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

--- Comment #3 from zhonghao at pku dot org.cn ---
(In reply to Richard Biener from comment #1)
> You run out of memory or stack.  Try ulimit -s unlimited

I tried  ulimit -s unlimited. This time, the error messages are as follows:

g++ -ftemplate-depth=1000000 test.cpp 
test.cpp: In substitution of 'template<class F, int n> __typeof__ (ft<F, (n -
1)>(F(), 0)) ft(F, typename enable_if<(n != 0), int>::type) [with F =
main()::a*; int n = -999997]':
test.cpp:14:21:   recursively required by substitution of 'template<class F,
int n> __typeof__ (ft<F, (n - 1)>(F(), 0)) ft(F, typename enable_if<(n != 0),
int>::type) [with F = main()::a*; int n = 1]'
test.cpp:14:21:   required by substitution of 'template<class F, int n>
__typeof__ (ft<F, (n - 1)>(F(), 0)) ft(F, typename enable_if<(n != 0),
int>::type) [with F = main()::a*; int n = 2]'
test.cpp:18:30:   required from here
test.cpp:14:21: fatal error: template instantiation depth exceeds maximum of
1000000 (use -ftemplate-depth= to increase the maximum)
 typeof( ft< F, n-1 >( F(), 0 ) )
       ~~~~~~~~~~~~~~^~~~~~~~~~~~
compilation terminated.
>From gcc-bugs-return-612425-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 09 02:06:56 2018
Return-Path: <gcc-bugs-return-612425-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 21223 invoked by alias); 9 Aug 2018 02:06:56 -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 20308 invoked by uid 48); 9 Aug 2018 02:06:52 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82967] "did you mean" suggestions are way too suggestive
Date: Thu, 09 Aug 2018 02:06: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: unknown
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status see_also
Message-ID: <bug-82967-4-uTST1KWuyf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82967-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82967-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-08/txt/msg00714.txt.bz2
Content-length: 592

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

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=81419

--- Comment #5 from Eric Gallager <egallager at gcc dot gnu.org> ---
ASSIGNED since there's an assignee. Also possibly related to bug 81419
>From gcc-bugs-return-612426-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 09 02:27:34 2018
Return-Path: <gcc-bugs-return-612426-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 101663 invoked by alias); 9 Aug 2018 02:27:34 -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 101557 invoked by uid 48); 9 Aug 2018 02:27:29 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/86889] s390x gcc build fails when configured with --disable-checking
Date: Thu, 09 Aug 2018 02:27:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 9.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: keywords cc blocked
Message-ID: <bug-86889-4-r3Ud6Q0qum@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86889-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86889-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-08/txt/msg00715.txt.bz2
Content-length: 709

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
                 CC|                            |msebor at gcc dot gnu.org
             Blocks|                            |56456

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
I can't confirm it yet.  Could you attach a test case or a preprocessing
translation unit?


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
[Bug 56456] [meta-bug] bogus/missing -Warray-bounds
>From gcc-bugs-return-612427-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 09 06:22:11 2018
Return-Path: <gcc-bugs-return-612427-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 50577 invoked by alias); 9 Aug 2018 06:22: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 50499 invoked by uid 48); 9 Aug 2018 06:22:07 -0000
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/86882] [9 Regression] ICE in reg_overlap_mentioned_p, at rtlanal.c:1873
Date: Thu, 09 Aug 2018 06:22:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ubizjak 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: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-86882-4-7Cbab2tPFj@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86882-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86882-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-08/txt/msg00716.txt.bz2
Content-length: 2321

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

--- Comment #6 from Uroš Bizjak <ubizjak at gmail dot com> ---
(In reply to Segher Boessenkool from comment #5)
> So what is wrong about that?  CONST_INTs are sign-extended always, so
> 0xffffffffffffff00 is just fine?

As said in Comment #2, it is not wrong, just suspicious.

(insn 10 9 11 3 (set (reg:SI 94 [ <retval> ])
        (zero_extend:SI (reg:QI 92 [ <retval> ]))) "pr86882.c":10 140
{*zero_extendqisi2}
     (nil))
(insn 11 10 13 3 (parallel [
            (set (reg:SI 95 [ jd ])
                (xor:SI (reg:SI 94 [ <retval> ])
                    (const_int 257 [0x101])))
            (clobber (reg:CC 17 flags))
        ]) "pr86882.c":10 461 {*xorsi_1}
     (expr_list:REG_DEAD (reg:SI 94 [ <retval> ])
        (expr_list:REG_UNUSED (reg:CC 17 flags)
            (nil))))
(insn 13 11 14 3 (parallel [
            (set (reg:HI 97)
                (xor:HI (subreg:HI (reg:SI 95 [ jd ]) 0)
                    (subreg:HI (reg:QI 92 [ <retval> ]) 0)))
            (clobber (reg:CC 17 flags))
        ]) "pr86882.c":11 459 {*xorhi_1}
     (expr_list:REG_DEAD (reg:SI 95 [ jd ])
        (expr_list:REG_DEAD (reg:QI 92 [ <retval> ])
            (expr_list:REG_UNUSED (reg:CC 17 flags)
                (nil)))))

gets combined to:

Trying 10, 11 -> 13:

Successfully matched this instruction:
(set (reg:HI 95 [ jd ])
    (and:HI (subreg:HI (reg:QI 92 [ <retval> ]) 0)
        (const_int -256 [0xffffffffffffff00])))
Successfully matched this instruction:
(set (reg:HI 97)
    (xor:HI (reg:HI 95 [ jd ])
        (const_int 257 [0x101])))

The first one operates on paradoxical HImode subreg of QImode input operand
(valid bitmask 0xff), which is masked with 0xff00. The result is a value, which
has only highpart unmasked and lowpart = 0x00. Later, a couple instructions
operate in HImode, but finally we get to:

(insn 14 13 15 3 (set (reg:QI 92 [ <retval> ])
        (subreg:QI (reg:HI 97) 0)) "pr86882.c":11 88 {*movqi_internal}
     (nil))

which discards paradoxical highpart from the Himode operations. So, I guess the
above is OK (but I didn't check the validity of XOR and AND simplifications in
different modes).

It looks to me that the invalid RTX from comment #1 should read:

        (set (reg:QI 97)
            (const_int 1 [0x1]))
>From gcc-bugs-return-612428-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 09 07:07:00 2018
Return-Path: <gcc-bugs-return-612428-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 90956 invoked by alias); 9 Aug 2018 07:07: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 90861 invoked by uid 55); 9 Aug 2018 07:06:56 -0000
From: "krebbel at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/84332] ICE in insn_default_length, at config/s390/s390.md:9697 for -fstack-clash-protection
Date: Thu, 09 Aug 2018 07:07: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.1
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: krebbel at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: krebbel at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-84332-4-ljehqPdAm3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-84332-4@http.gcc.gnu.org/bugzilla/>
References: <bug-84332-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-08/txt/msg00717.txt.bz2
Content-length: 1243

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

--- Comment #3 from Andreas Krebbel <krebbel at gcc dot gnu.org> ---
Author: krebbel
Date: Thu Aug  9 07:06:23 2018
New Revision: 263441

URL: https://gcc.gnu.org/viewcvs?rev=263441&root=gcc&view=rev
Log:
S/390: Fix PR84332 ICE with stack clash protection

Our implementation of the stack probe requires the probe interval to
be used as displacement in an address operand.  The maximum probe
interval currently is 64k.  This would exceed short displacements.
Trim that value down to 4k if that happens.  This might result in too
many probes being generated only on the oldest supported machine level
z900.

gcc/ChangeLog:

2018-08-09  Andreas Krebbel  <krebbel@linux.ibm.com>

        PR target/84332
        * config/s390/s390.c (s390_option_override_internal): Reduce the
        stack-clash-protection-probe-interval param if it would be too big
        for z900.

gcc/testsuite/ChangeLog:

2018-08-09  Andreas Krebbel  <krebbel@linux.ibm.com>

        PR target/84332
        * gcc.target/s390/pr84332.c: New testcase.


Added:
    trunk/gcc/testsuite/gcc.target/s390/pr84332.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/s390/s390.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-612429-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 09 07:11:26 2018
Return-Path: <gcc-bugs-return-612429-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 103506 invoked by alias); 9 Aug 2018 07:11:25 -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 103394 invoked by uid 48); 9 Aug 2018 07:11:22 -0000
From: "krebbel at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/84332] ICE in insn_default_length, at config/s390/s390.md:9697 for -fstack-clash-protection
Date: Thu, 09 Aug 2018 07:11: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.1
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: krebbel at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: krebbel at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-84332-4-bINxOryX2y@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-84332-4@http.gcc.gnu.org/bugzilla/>
References: <bug-84332-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-08/txt/msg00718.txt.bz2
Content-length: 457

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

Andreas Krebbel <krebbel at gcc dot gnu.org> changed:

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

--- Comment #4 from Andreas Krebbel <krebbel at gcc dot gnu.org> ---
Fixed with commit from comment 3
>From gcc-bugs-return-612430-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 09 09:02:23 2018
Return-Path: <gcc-bugs-return-612430-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 64102 invoked by alias); 9 Aug 2018 09:02: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 63980 invoked by uid 48); 9 Aug 2018 09:02:17 -0000
From: "iii at linux dot ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/86889] s390x gcc build fails when configured with --disable-checking
Date: Thu, 09 Aug 2018 09:02:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: iii at linux dot ibm.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-86889-4-T0p0aHDPXS@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86889-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86889-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-08/txt/msg00719.txt.bz2
Content-length: 636

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

--- Comment #2 from Ilya Leoshkevich <iii at linux dot ibm.com> ---
C-Reduced version:

struct a {
  long b[128 / (8 * 8)];
};
int c;
void d() {
  a *e;
  long f;
  int g = 1;
  for (; g >= 0; g--) {
    f = e->b[g];
    if (f)
      goto h;
  }
  __builtin_unreachable();
h:
  c = g;
}

Repro:

$ PATH=build/prev-gcc:$PATH xg++ -c -O2 -Warray-bounds bitmap.E.c
bitmap.E.c: In function ‘void d()’:
bitmap.E.c:10:15: warning: array subscript -1 is below array bounds of ‘long
int [2]’ [-Warray-bounds]
     f = e->b[g];
         ~~~~~~^
>From gcc-bugs-return-612431-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 09 09:07:13 2018
Return-Path: <gcc-bugs-return-612431-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 91258 invoked by alias); 9 Aug 2018 09:07:13 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 91194 invoked by uid 48); 9 Aug 2018 09:07:08 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/86503] Segmentation fault signal terminated
Date: Thu, 09 Aug 2018 09:07: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.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi 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: keywords bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-86503-4-QCnW7uOxPw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86503-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86503-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-08/txt/msg00720.txt.bz2
Content-length: 465

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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2018-08-09
     Ever confirmed|0                           |1
>From gcc-bugs-return-612432-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 09 09:52:04 2018
Return-Path: <gcc-bugs-return-612432-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 42300 invoked by alias); 9 Aug 2018 09:52: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 42166 invoked by uid 48); 9 Aug 2018 09:52:00 -0000
From: "niva at niisi dot msk.ru" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/86895] New: Wrong description of -fvect-cost-model in common.opt
Date: Thu, 09 Aug 2018 09:52: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.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: niva at niisi dot msk.ru
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-86895-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-08/txt/msg00721.txt.bz2
Content-length: 973

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

            Bug ID: 86895
           Summary: Wrong description of -fvect-cost-model in common.opt
           Product: gcc
           Version: 8.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: niva at niisi dot msk.ru
  Target Milestone: ---

gcc --help -v prints the following:

  Specifies the cost model for vectorization.
-fvect-cost-model=[unlimited|dynamic|cheap] Specifies
                              the cost model for vectorization.

I think that this results from the defect in gcc/common.opt:

fvect-cost-model=
Common Joined RejectNegative Enum(vect_cost_model) Var(flag_vect_cost_model)
Init(VECT_COST_MODEL_DEFAULT) Optimization
Specifies the cost model for vectorization.
-fvect-cost-model=[unlimited|dynamic|cheap]     Specifies the cost model for
vectorization.
>From gcc-bugs-return-612433-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 09 10:02:58 2018
Return-Path: <gcc-bugs-return-612433-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 102946 invoked by alias); 9 Aug 2018 10:02: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 99312 invoked by uid 48); 9 Aug 2018 10:02:54 -0000
From: "kretz at kde dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/86896] New: invalid vmovdqa64 instruction for KNL emitted
Date: Thu, 09 Aug 2018 10:02: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: 8.1.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: kretz at kde 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 keywords bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-86896-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-08/txt/msg00722.txt.bz2
Content-length: 968

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

            Bug ID: 86896
           Summary: invalid vmovdqa64 instruction for KNL emitted
           Product: gcc
           Version: 8.1.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: kretz at kde dot org
  Target Milestone: ---

Test case (unreduced) at
https://web-docs.gsi.de/~mkretz/invalid_knl_instruction.cpp

Compile the test case with `g++ -std=c++17 -O1 -march=knl
invalid_knl_instruction.cpp`

Output when testing with Intel SDE `-knl`:
TID 0 SDE-ERROR: Executed instruction not valid for specified chip (KNL):
0x41eb28: vmovdqa64 xmm4, xmm16
Image: a.out+0x1eb28 (in multi-region image, region# 0)
Function:
_ZN5Tests10operators_IN2Vc2v24simdIyNS2_8simd_abi11__fixed_abiILi31EEEEEE3runEv
Instruction bytes are: 62 b1 fd 08 6f e0
>From gcc-bugs-return-612434-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 09 10:17:55 2018
Return-Path: <gcc-bugs-return-612434-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 84734 invoked by alias); 9 Aug 2018 10:17: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 84676 invoked by uid 48); 9 Aug 2018 10:17:51 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/86895] Wrong description of -fvect-cost-model in common.opt
Date: Thu, 09 Aug 2018 10: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.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc assigned_to target_milestone everconfirmed
Message-ID: <bug-86895-4-FlnhgO3YJ3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86895-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86895-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-08/txt/msg00723.txt.bz2
Content-length: 751

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2018-08-09
                 CC|                            |marxin at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |marxin at gcc dot gnu.org
   Target Milestone|---                         |9.0
     Ever confirmed|0                           |1

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Yes, it's error that I done in r245788, let me fix that.
>From gcc-bugs-return-612435-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 09 10:37:39 2018
Return-Path: <gcc-bugs-return-612435-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 90907 invoked by alias); 9 Aug 2018 10:37: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 90871 invoked by uid 55); 9 Aug 2018 10:37:34 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/86895] Wrong description of -fvect-cost-model in common.opt
Date: Thu, 09 Aug 2018 10: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.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-86895-4-GqWRNITz33@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86895-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86895-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-08/txt/msg00724.txt.bz2
Content-length: 476

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

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Author: marxin
Date: Thu Aug  9 10:37:02 2018
New Revision: 263444

URL: https://gcc.gnu.org/viewcvs?rev=263444&root=gcc&view=rev
Log:
Remove extra line in common.opt (PR c/86895).

2018-08-09  Martin Liska  <mliska@suse.cz>

        PR c/86895
        * common.opt: Remove extra line.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/common.opt
>From gcc-bugs-return-612437-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 09 10:38:59 2018
Return-Path: <gcc-bugs-return-612437-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 92689 invoked by alias); 9 Aug 2018 10:38: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 92658 invoked by uid 48); 9 Aug 2018 10:38:55 -0000
From: "ro at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/86897] [9 regression] gcc.dg/uninit-suppress_2.c FAILs
Date: Thu, 09 Aug 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: middle-end
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ro 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-86897-4-r7qZu5DlOR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86897-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86897-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-08/txt/msg00726.txt.bz2
Content-length: 285

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

Rainer Orth <ro at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |9.0
>From gcc-bugs-return-612436-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 09 10:38:49 2018
Return-Path: <gcc-bugs-return-612436-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 91971 invoked by alias); 9 Aug 2018 10:38: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 91936 invoked by uid 48); 9 Aug 2018 10:38:44 -0000
From: "ro at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/86897] New: [9 regression] gcc.dg/uninit-suppress_2.c FAILs
Date: Thu, 09 Aug 2018 10:38: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: ro 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-86897-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-08/txt/msg00725.txt.bz2
Content-length: 736

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

            Bug ID: 86897
           Summary: [9 regression] gcc.dg/uninit-suppress_2.c FAILs
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ro at gcc dot gnu.org
  Target Milestone: ---

Between 20180806 (r263336) and 20180807 (r263360), gcc.dg/uninit-suppress_2.c
started to FAIL:

+FAIL: gcc.dg/uninit-suppress_2.c should not be promoted to error (test for
warnings, line 16)

I'm seeing it on 32 and 64-bit Solaris/SPARC and x86, according to
gcc-testresults this seems to happen everywhere.
>From gcc-bugs-return-612438-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 09 10:40:12 2018
Return-Path: <gcc-bugs-return-612438-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 93912 invoked by alias); 9 Aug 2018 10:40: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 93835 invoked by uid 48); 9 Aug 2018 10:40:07 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/86895] Wrong description of -fvect-cost-model in common.opt
Date: Thu, 09 Aug 2018 10:40: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.2.1
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: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-86895-4-ImwjC2MrxH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86895-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86895-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-08/txt/msg00727.txt.bz2
Content-length: 442

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

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

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

--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
Fixed on trunk.
>From gcc-bugs-return-612439-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 09 10:43:14 2018
Return-Path: <gcc-bugs-return-612439-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 104517 invoked by alias); 9 Aug 2018 10:43: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 104049 invoked by uid 48); 9 Aug 2018 10:43:08 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/86897] [9 regression] gcc.dg/uninit-suppress_2.c FAILs
Date: Thu, 09 Aug 2018 10:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
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: 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: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-86897-4-47UjXvHS3S@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86897-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86897-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-08/txt/msg00728.txt.bz2
Content-length: 658

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2018-08-09
                 CC|                            |law at gcc dot gnu.org,
                   |                            |marxin at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, started with r263342.
>From gcc-bugs-return-612441-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 09 10:49:49 2018
Return-Path: <gcc-bugs-return-612441-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 117412 invoked by alias); 9 Aug 2018 10:49:49 -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 117387 invoked by uid 48); 9 Aug 2018 10:49:45 -0000
From: "ro at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/86898] [9 regression] g++.old-deja/g++.mike/p784.C FAILs
Date: Thu, 09 Aug 2018 10: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:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ro 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-86898-4-d29XF7XYJi@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86898-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86898-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-08/txt/msg00730.txt.bz2
Content-length: 285

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

Rainer Orth <ro at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |9.0
>From gcc-bugs-return-612440-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 09 10:49:21 2018
Return-Path: <gcc-bugs-return-612440-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 116545 invoked by alias); 9 Aug 2018 10:49: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 116438 invoked by uid 48); 9 Aug 2018 10:49:14 -0000
From: "ro at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/86898] New: [9 regression] g++.old-deja/g++.mike/p784.C FAILs
Date: Thu, 09 Aug 2018 10:49: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: ro 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-86898-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-08/txt/msg00729.txt.bz2
Content-length: 1553

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

            Bug ID: 86898
           Summary: [9 regression] g++.old-deja/g++.mike/p784.C FAILs
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ro at gcc dot gnu.org
  Target Milestone: ---

Between 20180807 (r263360) and 20180808 (r263409), g++.old-deja/g++.mike/p784.C
started to FAIL

+FAIL: g++.old-deja/g++.mike/p784.C  -std=gnu++11 (test for excess errors)
+FAIL: g++.old-deja/g++.mike/p784.C  -std=gnu++14 (test for excess errors)
+FAIL: g++.old-deja/g++.mike/p784.C  -std=gnu++98 (test for excess errors)

I'm seeing it on 32-bit Solaris/SPARC and x86 only, but gcc-testresults lists
many others.

Excess errors:
/vol/gcc/src/hg/trunk/local/gcc/testsuite/g++.old-deja/g++.mike/p784.C:1185:21:
error: friend declaration of 'String common_prefix(const String&, const
String&, int)' specifies default arguments and isn't a definition
[-fpermissive]
/vol/gcc/src/hg/trunk/local/gcc/testsuite/g++.old-deja/g++.mike/p784.C:1187:21:
error: friend declaration of 'String common_suffix(const String&, const
String&, int)' specifies default arguments and isn't a definition
[-fpermissive]
/vol/gcc/src/hg/trunk/local/gcc/testsuite/g++.old-deja/g++.mike/p784.C:1226:21:
error: friend declaration of 'int readline(istream&, String&, char, int)'
specifies default arguments and isn't a definition [-fpermissive]
>From gcc-bugs-return-612442-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 09 11:07:55 2018
Return-Path: <gcc-bugs-return-612442-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 130236 invoked by alias); 9 Aug 2018 11:07: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 130199 invoked by uid 48); 9 Aug 2018 11:07:50 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/86896] invalid vmovdqa64 instruction for KNL emitted
Date: Thu, 09 Aug 2018 11:07: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.1.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-86896-4-MuLvcNlU1G@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86896-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86896-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-08/txt/msg00731.txt.bz2
Content-length: 613

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2018-08-09
                 CC|                            |marxin at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Fixed in 8.2.0, seen in 8.1.0. I'm bisecting right now.
>From gcc-bugs-return-612443-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 09 11:25:45 2018
Return-Path: <gcc-bugs-return-612443-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 106196 invoked by alias); 9 Aug 2018 11:25: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 105706 invoked by uid 48); 9 Aug 2018 11:25:37 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/86896] invalid vmovdqa64 instruction for KNL emitted
Date: Thu, 09 Aug 2018 11:25: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.1.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-86896-4-Ks6BLnkor5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86896-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86896-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-08/txt/msg00732.txt.bz2
Content-length: 232

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

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Fixed on trunk in r260969 which is a front-end change. Thus I'm going to
isolate a smaller test-case first.
>From gcc-bugs-return-612444-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 09 12:50:07 2018
Return-Path: <gcc-bugs-return-612444-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 92973 invoked by alias); 9 Aug 2018 12:50: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 92868 invoked by uid 48); 9 Aug 2018 12:50:03 -0000
From: "dimhen at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/86899] New: [7? regression] TSAN incorrect warning: control reaches end of non-void function
Date: Thu, 09 Aug 2018 12:50:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dimhen 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 cc target_milestone
Message-ID: <bug-86899-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-08/txt/msg00733.txt.bz2
Content-length: 1814

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

            Bug ID: 86899
           Summary: [7? regression] TSAN incorrect warning: control
                    reaches end of non-void function
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: sanitizer
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dimhen at gmail dot com
                CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org,
                    jakub at gcc dot gnu.org, kcc at gcc dot gnu.org, marxin at gcc dot gnu.org
  Target Milestone: ---

r255400 PASS
r255622 FAIL
r263351 FAIL

$ cat a.cpp 
int foo()
{
    return 0;
    if(0) {
        return 0;
    }
}

$ g++ -Wall  -c a.cpp

$ g++ -Wall -fsanitize=thread -c a.cpp 
a.cpp: In function ‘int foo()’:
a.cpp:7:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^


$ g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/local/gcc_current/libexec/gcc/x86_64-pc-linux-gnu/9.0.0/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
Target: x86_64-pc-linux-gnu
Configured with: /home/dimhen/src/gcc_current/configure
--prefix=/usr/local/gcc_current --enable-checking=yes,df,fold,rtl,extra
--enable-languages=c,c++,lto --disable-multilib --enable-shared
--enable-threads=posix --enable-__cxa_atexit --disable-libunwind-exceptions
--enable-gnu-unique-object --enable-linker-build-id
--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 --with-tune=native
Thread model: posix
gcc version 9.0.0 20180807 (experimental) [trunk revision 263351] (GCC)
>From gcc-bugs-return-612445-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 09 13:22:53 2018
Return-Path: <gcc-bugs-return-612445-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 124851 invoked by alias); 9 Aug 2018 13:22: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 124795 invoked by uid 48); 9 Aug 2018 13:22:48 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/86899] [8/9 regression] TSAN incorrect warning: control reaches end of non-void function
Date: Thu, 09 Aug 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: sanitizer
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: 8.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cf_known_to_work target_milestone short_desc everconfirmed cf_known_to_fail
Message-ID: <bug-86899-4-9HYAyAXHFe@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86899-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86899-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-08/txt/msg00734.txt.bz2
Content-length: 953

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2018-08-09
      Known to work|                            |7.3.0
   Target Milestone|---                         |8.3
            Summary|[7? regression] TSAN        |[8/9 regression] TSAN
                   |incorrect warning: control  |incorrect warning: control
                   |reaches end of non-void     |reaches end of non-void
                   |function                    |function
     Ever confirmed|0                           |1
      Known to fail|                            |8.2.0, 9.0

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with Jakub's r255403.
>From gcc-bugs-return-612446-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 09 13:27:02 2018
Return-Path: <gcc-bugs-return-612446-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 129174 invoked by alias); 9 Aug 2018 13:27:01 -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 129076 invoked by uid 48); 9 Aug 2018 13:26:58 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/86897] [9 regression] gcc.dg/uninit-suppress_2.c FAILs
Date: Thu, 09 Aug 2018 13:27:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
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: law at redhat dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: law at redhat dot com
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-86897-4-6fUaiGeaof@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86897-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86897-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-08/txt/msg00735.txt.bz2
Content-length: 285

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

--- Comment #2 from Jeffrey A. Law <law at redhat dot com> ---
Yea, the fix for this was in my tree when I was testing.  The DOM changes
compromise the test.  I'll push my fix to the trunk in a couple hours when I'm
back online.
>From gcc-bugs-return-612447-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 09 13:39:54 2018
Return-Path: <gcc-bugs-return-612447-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 65375 invoked by alias); 9 Aug 2018 13:39:54 -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 65325 invoked by uid 55); 9 Aug 2018 13:39:49 -0000
From: "rearnsha at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/86887] [9 Regression] aarch64: adcs accepts only register arguments
Date: Thu, 09 Aug 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: target
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: assemble-failure
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rearnsha at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rearnsha at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-86887-4-5oxCs441Mf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86887-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86887-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-08/txt/msg00736.txt.bz2
Content-length: 895

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

--- Comment #2 from Richard Earnshaw <rearnsha at gcc dot gnu.org> ---
Author: rearnsha
Date: Thu Aug  9 13:39:17 2018
New Revision: 263446

URL: https://gcc.gnu.org/viewcvs?rev=263446&root=gcc&view=rev
Log:
aarch64 - PR target/86887 Fix missing register constraints in carryin patterns

Some of the carryin insn patterns are missing a register constraint.
That means that the register allocator can pick practically anything
to hold that value, including memory locations, or registers of the
wrong class.

        PR target/86887
        * config/aarch64/aarch64.md (add<mode>3_carryinC_zero): Add missing
        register constraint to operand 0.
        (add<mode>3_carryinC): Likewise.
        (add<mode>3_carryinV_zero, add<mode>3_carryinV): Likewise.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/aarch64/aarch64.md
>From gcc-bugs-return-612448-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 09 13:44:49 2018
Return-Path: <gcc-bugs-return-612448-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 70035 invoked by alias); 9 Aug 2018 13:44: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 69984 invoked by uid 48); 9 Aug 2018 13:44:44 -0000
From: "rearnsha at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/86887] [9 Regression] aarch64: adcs accepts only register arguments
Date: Thu, 09 Aug 2018 13:44: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: assemble-failure
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rearnsha at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rearnsha at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-86887-4-SPUsUl6PgM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86887-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86887-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-08/txt/msg00737.txt.bz2
Content-length: 435

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

Richard Earnshaw <rearnsha at gcc dot gnu.org> changed:

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

--- Comment #3 from Richard Earnshaw <rearnsha at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-612449-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 09 14:22:42 2018
Return-Path: <gcc-bugs-return-612449-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 81486 invoked by alias); 9 Aug 2018 14:22: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 81458 invoked by uid 48); 9 Aug 2018 14:22:38 -0000
From: "jan.kratochvil at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/86900] New: -gdwarf-5 -O2 -ffunction-sections = assembler error
Date: Thu, 09 Aug 2018 14:22: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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jan.kratochvil at redhat 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-86900-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-08/txt/msg00738.txt.bz2
Content-length: 892

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

            Bug ID: 86900
           Summary: -gdwarf-5 -O2 -ffunction-sections = assembler error
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jan.kratochvil at redhat dot com
  Target Milestone: ---

g++ -gdwarf-5 -O2 -ffunction-sections -c 1.cc -o 1.o

/tmp/ccnCmT6w.s: Assembler messages:
/tmp/ccnCmT6w.s:61840: Error: invalid operands
(.text.unlikely._ZN4base27HistogramDeltaSerialization11RecordDeltaERKNS_13HistogramBaseERKNS_16HistogramSamplesE
and
.text._ZN4base27HistogramDeltaSerialization11RecordDeltaERKNS_13HistogramBaseERKNS_16HistogramSamplesE
sections) for `-'
...

FAIL: gcc-8.2.1-1dwarf64.fc28.x86_64
FAIL: gcc-8.1.1-5.fc28.x86_64
>From gcc-bugs-return-612450-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 09 14:38:01 2018
Return-Path: <gcc-bugs-return-612450-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 16829 invoked by alias); 9 Aug 2018 14:38: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 16752 invoked by uid 55); 9 Aug 2018 14:37:56 -0000
From: "rsandifo at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/86871] [8/9 Regression] ICE: gimple check: expected gimple_assign(error_mark), have gimple_call(trunc_mod_expr) in gimple_assign_lhs, at gimple.h:2462
Date: Thu, 09 Aug 2018 14: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: 9.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rsandifo at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rsandifo at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-86871-4-eQlhKyLSDp@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86871-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86871-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-08/txt/msg00739.txt.bz2
Content-length: 956

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

--- Comment #7 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> ---
Author: rsandifo
Date: Thu Aug  9 14:37:24 2018
New Revision: 263447

URL: https://gcc.gnu.org/viewcvs?rev=263447&root=gcc&view=rev
Log:
Fix invalid assumption in vect_transform_stmt (PR 86871)

The handling of outer-loop uses of inner-loop definitions assumed
that anything that wasn't a PHI would be a gassign.  It's also
possible for it to be a gcall.

2018-08-08  Richard Sandiford  <richard.sandiford@arm.com>

gcc/
        PR tree-optimization/86871
        * tree-vect-stmts.c (vect_transform_stmt): Use gimple_get_lhs
        instead of gimple_assign_lhs.

gcc/testsuite/
        PR tree-optimization/86871
        * gcc.dg/vect/pr86871.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/vect/pr86871.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-vect-stmts.c
>From gcc-bugs-return-612451-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 09 14:46:11 2018
Return-Path: <gcc-bugs-return-612451-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 58488 invoked by alias); 9 Aug 2018 14:46: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 57756 invoked by uid 55); 9 Aug 2018 14:45:46 -0000
From: "rsandifo at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/86858] [9 Regression] GCC ICE at -O3 in as_a, at is-a.h:197
Date: Thu, 09 Aug 2018 14:46:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rsandifo at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rsandifo at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-86858-4-ZSaUhDG39h@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86858-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86858-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-08/txt/msg00740.txt.bz2
Content-length: 1253

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

--- Comment #3 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> ---
Author: rsandifo
Date: Thu Aug  9 14:45:02 2018
New Revision: 263448

URL: https://gcc.gnu.org/viewcvs?rev=263448&root=gcc&view=rev
Log:
Restore flow_bb_inside_loop_p tests (PR 86858)

The series to remove vinfo_for_stmt also removed tests of
flow_bb_inside_loop_p if the call was simply testing whether the
statement was in the vectorisation region.  I'd tried to keep calls
that were testing whether the statement was in a particular loop
(inner or outer), but messed up in vect_is_simple_reduction and
removed calls that were actually needed.  This patch restores them.

I double-checked the other removed calls and I think these are
the only ones affected.

2018-08-08  Richard Sandiford  <richard.sandiford@arm.com>

gcc/
        PR tree-optimization/86858
        * tree-vect-loop.c (vect_is_simple_reduction): Restore
        flow_bb_inside_loop_p calls.

gcc/testsuite/
        PR tree-optimization/86858
        * gcc.dg/vect/pr86858.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/vect/pr86858.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-vect-loop.c
>From gcc-bugs-return-612452-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 09 15:32:51 2018
Return-Path: <gcc-bugs-return-612452-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 35065 invoked by alias); 9 Aug 2018 15:32: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 34005 invoked by uid 55); 9 Aug 2018 15:32:45 -0000
From: "dmalcolm at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/84889] Ideas on revamping how we format diagnostics
Date: Thu, 09 Aug 2018 15:32:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: other
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dmalcolm at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-84889-4-08zWvK3Apl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-84889-4@http.gcc.gnu.org/bugzilla/>
References: <bug-84889-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-08/txt/msg00741.txt.bz2
Content-length: 5468

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

--- Comment #10 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Author: dmalcolm
Date: Thu Aug  9 15:32:13 2018
New Revision: 263450

URL: https://gcc.gnu.org/viewcvs?rev=263450&root=gcc&view=rev
Log:
diagnostics: add line numbers to source (PR other/84889)

This patch adds a left margin to the lines of source (and annotations)
printed by diagnostic_show_locus, so that e.g. rather than:

test.c: In function 'test':
test.c:12:15: error: 'struct foo' has no member named 'm_bar'; did you mean
'bar'?
   return ptr->m_bar;
               ^~~~~
               bar

we print:

test.c: In function 'test':
test.c:12:15: error: 'struct foo' has no member named 'm_bar'; did you mean
'bar'?
12 |   return ptr->m_bar;
   |               ^~~~~
   |               bar

Similarly, for a multiline case (in C++ this time), this:

bad-binary-ops.C: In function 'int test_2()':
bad-binary-ops.C:26:4: error: no match for 'operator+' (operand types are 's'
and 't')
   return (some_function ()
           ~~~~~~~~~~~~~~~~
    + some_other_function ());
    ^~~~~~~~~~~~~~~~~~~~~~~~

becomes:

bad-binary-ops.C: In function 'int test_2()':
bad-binary-ops.C:26:4: error: no match for 'operator+' (operand types are 's'
and 't')
25 |   return (some_function ()
   |           ~~~~~~~~~~~~~~~~
26 |    + some_other_function ());
   |    ^~~~~~~~~~~~~~~~~~~~~~~~

I believe this slightly improves the readability of the output, in that it:
- distinguishes between the user's source code vs the annotation lines
  that we're adding (the underlinings and fix-it hints here)
- shows the line numbers in another place (potentially helpful for
  multiline diagnostics, where the user can see the line numbers directly,
  rather than have to figure them out relative to the caret: in the 2nd
  example, note how the diagnostic is reported at line 26, but the first
  line printed is actually line 25)

I'm not sure that this is the precise format we want to go with [1], but
I think it's an improvement over the status quo, and we're in stage 1
of gcc 9, so there's plenty of time to shake out issues.

I've turned it on by default; it can be disabled via
-fno-diagnostics-show-line-numbers (it's also turned off in the testsuite, to
avoid breaking numerous existing test cases).

[1] Some possible variants:
  - maybe just "LL|" rather than "LL | "
  - maybe ':' rather than '|'
  - maybe we should have some leading indentation, to better split up
    the diagnostics visually via the left-hand column
  - etc

gcc/ChangeLog:
        PR other/84889
        * common.opt (fdiagnostics-show-line-numbers): New option.
        * diagnostic-show-locus.c (class layout): Add fields
        "m_show_line_numbers_p" and "m_linenum_width";
        (num_digits): New function.
        (test_num_digits): New function.
        (layout::layout): Initialize new fields.  Update m_x_offset
        logic to handle any left margin.
        (layout::print_source_line): Print line number when requested.
        (layout::start_annotation_line): New member function.
        (layout::print_annotation_line): Call it.
        (layout::print_leading_fixits): Likewise.
        (layout::print_trailing_fixits): Likewise.  Update calls to
        move_to_column for new parameter.
        (layout::get_x_bound_for_row): Add "add_left_margin" param and use
        it to potentially call start_annotation_line.
        (layout::show_ruler): Call start_annotation_line.
        (selftest::test_line_numbers_multiline_range): New selftest.
        (selftest::diagnostic_show_locus_c_tests): Call test_num_digits
        and selftest::test_line_numbers_multiline_range.
        * diagnostic.c (diagnostic_initialize): Initialize
        show_line_numbers_p.
        * diagnostic.h (struct diagnostic_context): Add field
        "show_line_numbers_p".
        * doc/invoke.texi (Diagnostic Message Formatting Options): Add
        -fno-diagnostics-show-line-numbers.
        * dwarf2out.c (gen_producer_string): Add
        OPT_fdiagnostics_show_line_numbers to the ignored options.
        * lto-wrapper.c (merge_and_complain): Likewise to the "pick
        one setting" options.
        (append_compiler_options): Likewise to the dropped options.
        (append_diag_options): Likewise to the passed-on options.
        * opts.c (common_handle_option): Handle the new option.
        * toplev.c (general_init): Set up global_dc->show_line_numbers_p.

gcc/testsuite/ChangeLog:
        PR other/84889
        * gcc.dg/plugin/diagnostic-test-show-locus-bw-line-numbers.c: New
        test.
        * gcc.dg/plugin/diagnostic-test-show-locus-color-line-numbers.c:
        New test.
        * gcc.dg/plugin/plugin.exp (plugin_test_list): Add the new tests.
        * lib/prune.exp: Add -fno-diagnostics-show-line-numbers to
        TEST_ALWAYS_FLAGS.


Added:
   
trunk/gcc/testsuite/gcc.dg/plugin/diagnostic-test-show-locus-bw-line-numbers.c
   
trunk/gcc/testsuite/gcc.dg/plugin/diagnostic-test-show-locus-color-line-numbers.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/common.opt
    trunk/gcc/diagnostic-show-locus.c
    trunk/gcc/diagnostic.c
    trunk/gcc/diagnostic.h
    trunk/gcc/doc/invoke.texi
    trunk/gcc/dwarf2out.c
    trunk/gcc/lto-wrapper.c
    trunk/gcc/opts.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/plugin/plugin.exp
    trunk/gcc/testsuite/lib/prune.exp
    trunk/gcc/toplev.c
>From gcc-bugs-return-612453-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 09 16:03:42 2018
Return-Path: <gcc-bugs-return-612453-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 11318 invoked by alias); 9 Aug 2018 16:03: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 11261 invoked by uid 48); 9 Aug 2018 16:03:37 -0000
From: "wilco at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/86901] New: [AArch64] Suboptimal register allocation for int/float reinterpret
Date: Thu, 09 Aug 2018 16:03: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: wilco 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-86901-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-08/txt/msg00742.txt.bz2
Content-length: 1556

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

            Bug ID: 86901
           Summary: [AArch64] Suboptimal register allocation for int/float
                    reinterpret
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: wilco at gcc dot gnu.org
  Target Milestone: ---

This example (narrowed down from GLIBC) shows inefficient register allocation:

typedef unsigned int uint32_t;

float g (float);

static inline uint32_t
top12 (float x)
{
  union
  {
    float f;
    uint32_t i;
  } u = {x};
  return (u.i >> 20) & 0x7ff;
}

void
f1 (float y, float *p)
{
  if (__builtin_expect (top12 (y) < top12 (1.0), 1))
    *p = y * y;
  else
    g (y + y);
}

void
f2 (float y, float *p)
{
  if (__builtin_expect (top12 (y) < top12 (1.0), 1))
    *p = y * y;
  else
    g (y);
}

On AArch64 this generates with -O2:

f1:
        fmov    x1, d0
        ubfx    x1, x1, 20, 11
        cmp     w1, 1015
        bhi     .L2
        fmul    s0, s0, s0
        str     s0, [x0]
        ret
.L2:
        fadd    s0, s0, s0
        b       g

f2:
        .cfi_startproc
        fmov    s1, s0   // eh?
        fmov    x1, d1   // why not fmov w1, s0???
        ubfx    x1, x1, 20, 11
        cmp     w1, 1015
        bhi     .L7
        fmul    s1, s0, s0
        str     s1, [x0]
        ret
.L7:
        b       g

Also the move is done as 64 bits rather than 32.
>From gcc-bugs-return-612454-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 09 16:04:02 2018
Return-Path: <gcc-bugs-return-612454-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 12210 invoked by alias); 9 Aug 2018 16:04:02 -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 12094 invoked by uid 55); 9 Aug 2018 16:03:58 -0000
From: "rsandifo at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/86871] [8/9 Regression] ICE: gimple check: expected gimple_assign(error_mark), have gimple_call(trunc_mod_expr) in gimple_assign_lhs, at gimple.h:2462
Date: Thu, 09 Aug 2018 16:04: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: rsandifo at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rsandifo at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-86871-4-PCL28SfQMs@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86871-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86871-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-08/txt/msg00743.txt.bz2
Content-length: 1183

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

--- Comment #8 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> ---
Author: rsandifo
Date: Thu Aug  9 16:03:25 2018
New Revision: 263451

URL: https://gcc.gnu.org/viewcvs?rev=263451&root=gcc&view=rev
Log:
Allow inner-loop reductions with variable-length vectors

While working on PR 86871, I noticed we were being overly restrictive
when handling variable-length vectors.  For:

  for (i : ...)
    {
      res = ...;
      for (j : ...)
        res op= ...;
      a[i] = res;
    }

we don't need a reduction operation (although we do for double
reductions like:

  res = ...;
  for (i : ...)
    for (j : ...)
      res op= ...;
  a[i] = res;

which must still be rejected).

2018-08-08  Richard Sandiford  <richard.sandiford@arm.com>

gcc/
        * tree-vect-loop.c (vectorizable_reduction): Allow inner-loop
        reductions for variable-length vectors.

gcc/testsuite/
        * gcc.target/aarch64/sve/reduc_8.c: New test.

Added:
    trunk/gcc/testsuite/gcc.target/aarch64/sve/reduc_8.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-vect-loop.c
>From gcc-bugs-return-612455-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 09 16:11:41 2018
Return-Path: <gcc-bugs-return-612455-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 30982 invoked by alias); 9 Aug 2018 16:11: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 30852 invoked by uid 48); 9 Aug 2018 16:11:36 -0000
From: "zsojka at seznam dot cz" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/86902] New: [9 Regression] ICE: in as_a, at machmode.h:356 at -O
Date: Thu, 09 Aug 2018 16:11: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: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: zsojka at seznam dot cz
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 target_milestone cf_gcchost cf_gcctarget attachments.created
Message-ID: <bug-86902-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-08/txt/msg00744.txt.bz2
Content-length: 3152

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

            Bug ID: 86902
           Summary: [9 Regression] ICE: in as_a, at machmode.h:356 at -O
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu
            Target: aarch64-unknown-linux-gnu

Created attachment 44521
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44521&action=edit
reduced testcase

Compiler output:
$ aarch64-unknown-linux-gnu-gcc -O testcase.c
during RTL pass: combine
testcase.c: In function 'c':
testcase.c:10:1: internal compiler error: in as_a, at machmode.h:356
 }
 ^
0xc2ec89 scalar_int_mode as_a<scalar_int_mode>(machine_mode)
        /repo/gcc-trunk/gcc/machmode.h:356
0xc2ec89 simplify_const_unary_operation(rtx_code, machine_mode, rtx_def*,
machine_mode)
        /repo/gcc-trunk/gcc/simplify-rtx.c:1838
0xc28b60 simplify_unary_operation(rtx_code, machine_mode, rtx_def*,
machine_mode)
        /repo/gcc-trunk/gcc/simplify-rtx.c:873
0xc2cf50 simplify_gen_unary(rtx_code, machine_mode, rtx_def*, machine_mode)
        /repo/gcc-trunk/gcc/simplify-rtx.c:372
0x141f679 if_then_else_cond
        /repo/gcc-trunk/gcc/combine.c:9249
0x141f468 if_then_else_cond
        /repo/gcc-trunk/gcc/combine.c:9267
0x143e378 combine_simplify_rtx
        /repo/gcc-trunk/gcc/combine.c:5764
0x1446529 subst
        /repo/gcc-trunk/gcc/combine.c:5646
0x144613c subst
        /repo/gcc-trunk/gcc/combine.c:5580
0x144ae7f try_combine
        /repo/gcc-trunk/gcc/combine.c:3385
0x1456d10 combine_instructions
        /repo/gcc-trunk/gcc/combine.c:1302
0x1456d10 rest_of_handle_combine
        /repo/gcc-trunk/gcc/combine.c:14945
0x1456d10 execute
        /repo/gcc-trunk/gcc/combine.c:14990
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.

$ aarch64-unknown-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-aarch64/bin/aarch64-unknown-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-263387-checking-yes-rtl-df-extra-aarch64/bin/../libexec/gcc/aarch64-unknown-linux-gnu/9.0.0/lto-wrapper
Target: aarch64-unknown-linux-gnu
Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++
--enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra
--with-cloog --with-ppl --with-isl
--with-sysroot=/usr/aarch64-unknown-linux-gnu --build=x86_64-pc-linux-gnu
--host=x86_64-pc-linux-gnu --target=aarch64-unknown-linux-gnu
--with-ld=/usr/bin/aarch64-unknown-linux-gnu-ld
--with-as=/usr/bin/aarch64-unknown-linux-gnu-as --disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-263387-checking-yes-rtl-df-extra-aarch64
Thread model: posix
gcc version 9.0.0 20180808 (experimental) (GCC) 

Tested revisions:
r263450 - FAIL
r263387 - FAIL
>From gcc-bugs-return-612456-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 09 17:00:55 2018
Return-Path: <gcc-bugs-return-612456-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 29368 invoked by alias); 9 Aug 2018 17:00:54 -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 28979 invoked by uid 48); 9 Aug 2018 17:00:22 -0000
From: "rearnsha at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/86799] nios2 port needs updating for CVE-2017-5753
Date: Thu, 09 Aug 2018 17:00: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: 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-86799-4-4TeCKpsJit@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86799-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86799-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-08/txt/msg00745.txt.bz2
Content-length: 324

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

--- Comment #1 from Richard Earnshaw <rearnsha at gcc dot gnu.org> ---
I nearly missed this patch for my accumulated back-porting list since it
didn't have the PR number in it.

Just adding it so that I can track things properly.  The original commit
landed as r263301.
>From gcc-bugs-return-612457-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 09 17:01:41 2018
Return-Path: <gcc-bugs-return-612457-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 30649 invoked by alias); 9 Aug 2018 17:01: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 30599 invoked by uid 48); 9 Aug 2018 17:01:36 -0000
From: "rearnsha at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/86772] [meta-bug] tracking port status for CVE-2017-5753
Date: Thu, 09 Aug 2018 17:01:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: dep_changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: meta-bug
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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-86772-4-EHM8sDDzM1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86772-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86772-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-08/txt/msg00746.txt.bz2
Content-length: 469

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86772
Bug 86772 depends on bug 86799, which changed state.

Bug 86799 Summary: nios2 port needs updating for CVE-2017-5753
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86799

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED
>From gcc-bugs-return-612458-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 09 17:01:41 2018
Return-Path: <gcc-bugs-return-612458-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 30657 invoked by alias); 9 Aug 2018 17:01: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 30541 invoked by uid 48); 9 Aug 2018 17:01:31 -0000
From: "rearnsha at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/86799] nios2 port needs updating for CVE-2017-5753
Date: Thu, 09 Aug 2018 17:01: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: 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-86799-4-VgcEpRyxnn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86799-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86799-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-08/txt/msg00747.txt.bz2
Content-length: 444

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

Richard Earnshaw <rearnsha at gcc dot gnu.org> changed:

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

--- Comment #2 from Richard Earnshaw <rearnsha at gcc dot gnu.org> ---
Fixed on trunk.
>From gcc-bugs-return-612459-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 09 17:12:23 2018
Return-Path: <gcc-bugs-return-612459-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 44869 invoked by alias); 9 Aug 2018 17:12: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 44709 invoked by uid 55); 9 Aug 2018 17:12:18 -0000
From: "law at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/86897] [9 regression] gcc.dg/uninit-suppress_2.c FAILs
Date: Thu, 09 Aug 2018 17:12:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
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: law at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: law at redhat dot com
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-86897-4-yYwKPOxhyt@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86897-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86897-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-08/txt/msg00748.txt.bz2
Content-length: 431

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

--- Comment #3 from Jeffrey A. Law <law at gcc dot gnu.org> ---
Author: law
Date: Thu Aug  9 17:11:45 2018
New Revision: 263454

URL: https://gcc.gnu.org/viewcvs?rev=263454&root=gcc&view=rev
Log:
        PR middle-end/86897
        * gcc.dg/uninit-suppress_2.c: Disable DOM.

Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/uninit-suppress_2.c
>From gcc-bugs-return-612460-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 09 17:14:03 2018
Return-Path: <gcc-bugs-return-612460-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 47966 invoked by alias); 9 Aug 2018 17:14:02 -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 47886 invoked by uid 48); 9 Aug 2018 17:13:58 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/86897] [9 regression] gcc.dg/uninit-suppress_2.c FAILs
Date: Thu, 09 Aug 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: middle-end
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: law at redhat dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: law at redhat dot com
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-86897-4-YpEYSCuyqw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86897-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86897-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-08/txt/msg00749.txt.bz2
Content-length: 432

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

Jeffrey A. Law <law at redhat dot com> changed:

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

--- Comment #4 from Jeffrey A. Law <law at redhat dot com> ---
Fixed on the trunk.
>From gcc-bugs-return-612461-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 09 17:23:41 2018
Return-Path: <gcc-bugs-return-612461-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 41530 invoked by alias); 9 Aug 2018 17:23: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 41501 invoked by uid 48); 9 Aug 2018 17:23:36 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/86894] error for a zero-length array initialized with empty braced list
Date: Thu, 09 Aug 2018 17:23: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: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mpolacek 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 cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-86894-4-eLr0SHsVqr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86894-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86894-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-08/txt/msg00750.txt.bz2
Content-length: 561

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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2018-08-09
                 CC|                            |mpolacek at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Confirmed.
>From gcc-bugs-return-612462-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 09 18:07:10 2018
Return-Path: <gcc-bugs-return-612462-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 130053 invoked by alias); 9 Aug 2018 18:07: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 129991 invoked by uid 48); 9 Aug 2018 18:07:04 -0000
From: "segher at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/86684] ICE in extract_insn, at recog.c:2304 on ppc64le
Date: Thu, 09 Aug 2018 18:07: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: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: segher 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: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-86684-4-ni6LNBPOrT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86684-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86684-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-08/txt/msg00751.txt.bz2
Content-length: 631

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

Segher Boessenkool <segher at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|2018-07-26 00:00:00         |2018-08-09
     Ever confirmed|0                           |1

--- Comment #5 from Segher Boessenkool <segher at gcc dot gnu.org> ---
I cannot reproduce this, not on gcc14 either.  I notice you use ppc64le-linux,
while the canonical name is powerpc64le-linux; maybe that matters?
>From gcc-bugs-return-612463-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 09 19:43:41 2018
Return-Path: <gcc-bugs-return-612463-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 58966 invoked by alias); 9 Aug 2018 19:43: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 58894 invoked by uid 48); 9 Aug 2018 19:43:36 -0000
From: "bernd.edlinger at hotmail dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/86903] New: ICE in init_target_to_host_charmap
Date: Thu, 09 Aug 2018 19:43: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: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: bernd.edlinger at hotmail 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-86903-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-08/txt/msg00752.txt.bz2
Content-length: 1570

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

            Bug ID: 86903
           Summary: ICE in init_target_to_host_charmap
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: bernd.edlinger at hotmail dot de
  Target Milestone: ---

$ cat w.cc
int main()
{
  __builtin_printf("%ld\n", 0);
  return 0;
}
$ gcc -S -fexec-charset=DE w.cc
w.cc: In function 'int main()':
w.cc:1:5: internal compiler error: converting to execution character set:
Invalid or incomplete multibyte or wide character
 int main()
     ^~~~
0xa6ced9 c_cpp_error(cpp_reader*, int, int, rich_location*, char const*,
__va_list_tag (*) [1])
        ../../gcc-trunk/gcc/c-family/c-common.c:6141
0x17d74c0 cpp_diagnostic
        ../../gcc-trunk/libcpp/errors.c:74
0x17d7646 cpp_error(cpp_reader*, int, char const*, ...)
        ../../gcc-trunk/libcpp/errors.c:87
0x17d0033 cpp_host_to_exec_charset(cpp_reader*, unsigned int)
        ../../gcc-trunk/libcpp/charset.c:798
0xa6cff3 c_common_to_target_charset(long)
        ../../gcc-trunk/gcc/c-family/c-common.c:6159
0x169d2a1 init_target_to_host_charmap
        ../../gcc-trunk/gcc/gimple-ssa-sprintf.c:334
0x169d2a1 execute
        ../../gcc-trunk/gcc/gimple-ssa-sprintf.c:4086
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-612464-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 09 20:08:41 2018
Return-Path: <gcc-bugs-return-612464-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 69364 invoked by alias); 9 Aug 2018 20:08: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 69223 invoked by uid 48); 9 Aug 2018 20:08:37 -0000
From: "dmalcolm at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/86904] New: Column numbers ignore tab characters
Date: Thu, 09 Aug 2018 20:08:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: other
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dmalcolm 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 target_milestone
Message-ID: <bug-86904-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-08/txt/msg00753.txt.bz2
Content-length: 5559

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

            Bug ID: 86904
           Summary: Column numbers ignore tab characters
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dmalcolm at gcc dot gnu.org
  Target Milestone: ---

As noted in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=19165#c21 :

/* Both gcc and emacs number source *lines* starting at 1, but
   they have differing conventions for *columns*.

   GCC uses a 1-based convention for source columns,
   whereas Emacs's M-x column-number-mode uses a 0-based convention.

   For example, an error in the initial, left-hand
   column of source line 3 is reported by GCC as:

      some-file.c:3:1: error: ...etc...

   On navigating to the location of that error in Emacs
   (e.g. via "next-error"),
   the locus is reported in the Mode Line
   (assuming M-x column-number-mode) as:

     some-file.c   10%   (3, 0)

   i.e. "3:1:" in GCC corresponds to "(3, 0)" in Emacs.  */

In terms of 0 vs 1, GCC complies with the GNU standards here:
https://www.gnu.org/prep/standards/html_node/Errors.html

However our "column numbers" are also simply a 1-based byte-count, so a tab
character is treated by us as simply an increment of 1 right now.

(see also PR 49973, which covers the case of multibyte characters).

It turns out that we convert tab characters to *single* space characters when
printing source code.

This behavior has been present since Manu first implemented
-fdiagnostics-show-caret in r186305 (aka
5a9830842f69ebb059061e26f8b0699cbd85121e, PR 24985), where it was this logic
(there in diagnostic.c's diagnostic_show_locus):
      char c = *line == '\t' ? ' ' : *line;
      pp_character (context->printer, c);

(that logic is now in diagnostic-show-locus.c in layout::print_source_line)

This is arguably a bug, but it's intimately linked to the way in which we track
"column numbers".

Our "column numbers" are currently simply a 1-based byte-count, I believe, so a
tab character is treated by us as simply an increment of 1 right now.

There are similar issues with encodings that aren't 1 byte per character (e.g.
non-ASCII unicode characters), which are being tracked in PR 49973.

Presumably, when we print source lines containing tab characters, we should
emit a number of spaces to reach a tab stop.

Consider a diagnostic with a multiline range covering the
following source (and beyond):

      indent: 6 (tabs: 0, spaces: 6)
       indent: 7 (tabs: 0, spaces: 7)
        indent: 8 (tabs: 1, spaces: 0)
         indent: 9 (tabs: 1, spaces: 1)

i.e.:

  "      indent: 6 (tabs: 0, spaces: 6)\n"
  "       indent: 7 (tabs: 0, spaces: 7)\n"
  "\tindent: 8 (tabs: 1, spaces: 0)\n"
  "\t indent: 9 (tabs: 1, spaces: 1)\n"

Currently diagnostic_show_locus prints:

       indent: 6 (tabs: 0, spaces: 6)
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        indent: 7 (tabs: 0, spaces: 7)
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  indent: 8 (tabs: 1, spaces: 0)
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   indent: 9 (tabs: 1, spaces: 1)
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

i.e:
  "       indent: 6 (tabs: 0, spaces: 6)\n"
  "       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"
  "        indent: 7 (tabs: 0, spaces: 7)\n"
  "        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"
  "  indent: 8 (tabs: 1, spaces: 0)\n"
  "  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"
  "   indent: 9 (tabs: 1, spaces: 1)\n"
  "   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"

which misrepresents the indentation of the user's code.

It should respect tabstops, and print:

       indent: 6 (tabs: 0, spaces: 6)
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        indent: 7 (tabs: 0, spaces: 7)
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         indent: 8 (tabs: 1, spaces: 0)
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          indent: 9 (tabs: 1, spaces: 1)
          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

i.e.:

  "       indent: 6 (tabs: 0, spaces: 6)\n"
  "       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"
  "        indent: 7 (tabs: 0, spaces: 7)\n"
  "        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"
  "         indent: 8 (tabs: 1, spaces: 0)\n"
  "         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"
  "          indent: 9 (tabs: 1, spaces: 1)\n"
  "          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"

We should also handle erroneous leading spaces before a tab, so that e.g.

  "  \tfoo"

should be printed as if it were:

 "\tfoo"

(given that that's what the user's editor is probably printing it as).

Similarly, we should presumably print "8" for the column number for the 'f' of
"foo".  However, IDEs are expecting GCC's existing behavior, so we should
probably add a command-line option for controlling this.

Adding a left margin with line numbers (as of r263450) doesn't change this bug,
but makes fixing it slightly more complicated.

Maybe:
  -fdiagnostics-x-coord=bytes : count of bytes
  -fdiagnostics-x-coord=characters : count of characters (not special-casing
tab)
  -fdiagnostics-x-coord=columns : count of columns: as per characters, but with
tabs doing tabstops
(currently we use "bytes"  Not sure if we need "characters")

I'm thinking that internally, we should continue to track byte offsets, but
make the option affect the presentation of the number in diagnostics*.c.

(should it affect -fdiagnostics-parseable-fixits ?
see also the Emacs RFE for parseable fixits:
  https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25987 )
>From gcc-bugs-return-612465-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 09 20:47:58 2018
Return-Path: <gcc-bugs-return-612465-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 39347 invoked by alias); 9 Aug 2018 20:47: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 39292 invoked by uid 48); 9 Aug 2018 20:47:53 -0000
From: "helloqirun at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/86905] New: g++ ICE on valid code: verify_cgraph_node failed
Date: Thu, 09 Aug 2018 20:47: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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: helloqirun 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-86905-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-08/txt/msg00754.txt.bz2
Content-length: 2582

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

            Bug ID: 86905
           Summary: g++ ICE on valid code: verify_cgraph_node failed
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: helloqirun at gmail dot com
  Target Milestone: ---

It appears to be a recent regression. g++-8.1 compiles.

$ g++-trunk -v
Using built-in specs.
COLLECT_GCC=g++-trunk
COLLECT_LTO_WRAPPER=/home/absozero/trunk/root-gcc/libexec/gcc/x86_64-pc-linux-gnu/9.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc/configure --prefix=/home/absozero/trunk/root-gcc
--enable-languages=c,c++ --disable-werror --enable-multilib
Thread model: posix
gcc version 9.0.0 20180809 (experimental) [trunk revision 263445] (GCC)

$ g++-trunk abc.C
abc.C: In function ‘int pthread_equal()’:
abc.C:1:42: warning: no return statement in function returning non-void
[-Wreturn-type]
 extern "C" __inline int pthread_equal() {}
                                          ^
abc.C: At global scope:
abc.C:3:17: error: comdat-local function called by void b() outside its comdat
 void b() { a(); }
                 ^
_ZL1av/1 (int a()) @0x7f1523464420
  Type: function definition analyzed alias transparent_alias weakref
  Visibility: weak comdat_group:pthread_equal
  Same comdat group as: pthread_equal/0
  References: pthread_equal/0 (alias)
  Referring:
  First run: 0
  Function flags:
  Called by: void b()/2 (can throw external)
  Calls:
abc.C:3:17: internal compiler error: verify_cgraph_node failed
0xaf69ec cgraph_node::verify_node()
        ../../gcc/gcc/cgraph.c:3433
0xaeae8c symtab_node::verify()
        ../../gcc/gcc/symtab.c:1218
0xaeaf57 symtab_node::verify_symtab_nodes()
        ../../gcc/gcc/symtab.c:1238
0xafe434 symtab_node::checking_verify_symtab_nodes()
        ../../gcc/gcc/cgraph.h:625
0xafe434 symbol_table::compile()
        ../../gcc/gcc/cgraphunit.c:2520
0xb00399 symbol_table::compile()
        ../../gcc/gcc/cgraphunit.c:2517
0xb00399 symbol_table::finalize_compilation_unit()
        ../../gcc/gcc/cgraphunit.c:2698
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.




$ cat abc.C
extern "C" __inline int pthread_equal() {}
static __typeof(pthread_equal) a __attribute__((__weakref__("pthread_equal")));
void b() { a(); }
>From gcc-bugs-return-612467-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 09 21:10:31 2018
Return-Path: <gcc-bugs-return-612467-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 61445 invoked by alias); 9 Aug 2018 21:10:31 -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 60626 invoked by uid 48); 9 Aug 2018 21:10:27 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/82700] ICE in printf-return-value with -fexec-charsetëCDIC-US: converting to execution character set: Invalid or incomplete multibyte or wide character
Date: Thu, 09 Aug 2018 21:10:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor 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: cc
Message-ID: <bug-82700-4-KhO60nGqEl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82700-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82700-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-08/txt/msg00756.txt.bz2
Content-length: 449

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bernd.edlinger at hotmail dot de

--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
*** Bug 86903 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-612466-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 09 21:10:31 2018
Return-Path: <gcc-bugs-return-612466-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 61437 invoked by alias); 9 Aug 2018 21:10:31 -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 60614 invoked by uid 48); 9 Aug 2018 21:10:26 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/86903] ICE in init_target_to_host_charmap
Date: Thu, 09 Aug 2018 21:10:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor 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_status resolution
Message-ID: <bug-86903-4-qnkAFAmeDw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86903-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86903-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-08/txt/msg00755.txt.bz2
Content-length: 504

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

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

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

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Duplicate of pr82700.

*** This bug has been marked as a duplicate of bug 82700 ***
>From gcc-bugs-return-612468-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 09 21:35:50 2018
Return-Path: <gcc-bugs-return-612468-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 98386 invoked by alias); 9 Aug 2018 21:35:49 -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 98364 invoked by uid 48); 9 Aug 2018 21:35:44 -0000
From: "damian at sourceryinstitute dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/86906] New: erroneous name clash with renaming in use statement
Date: Thu, 09 Aug 2018 21:35: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: 8.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: damian at sourceryinstitute 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
Message-ID: <bug-86906-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-08/txt/msg00757.txt.bz2
Content-length: 1174

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

            Bug ID: 86906
           Summary: erroneous name clash with renaming in use statement
           Product: gcc
           Version: 8.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: damian at sourceryinstitute dot org
  Target Milestone: ---

gfortran 6.4, 7.3, and 8.2 all produce the error message below when attempting
to use a renamed type while in the same scope as the variable that motivated
the renaming:

$ cat foo.f90 
module foo
  type config
  end type
end module
  use foo, only: foo_config => config
contains
  subroutine cap
    integer config
    type(foo_config) extra
  end subroutine
end

$ gfortran foo.f90 
foo.f90:9:26:

     integer config
                  2        
     type(foo_config) extra
                          1
Error: The type ‘config’ cannot be host associated at (1) because it is blocked
by an incompatible object of the same name declared at (2)

$ gfortran --version
GNU Fortran (GCC) 8.2.0
>From gcc-bugs-return-612469-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 09 21:59:12 2018
Return-Path: <gcc-bugs-return-612469-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 29235 invoked by alias); 9 Aug 2018 21:59: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 29196 invoked by uid 48); 9 Aug 2018 21:59:06 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/86889] s390x gcc build fails when configured with --disable-checking
Date: Thu, 09 Aug 2018 21:59:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor 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 cf_reconfirmed_on everconfirmed
Message-ID: <bug-86889-4-hvXEsnR4wK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86889-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86889-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-08/txt/msg00758.txt.bz2
Content-length: 3210

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

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

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

--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
Thank you.  With the small test case I can confirm the warning even on
x86_64-linux.  I've reduced it a tiny bit more.  Here's the smaller test case
and the VRP output:

$ cat f.c && gcc -S -O2 -Wall -fdump-tree-vrp=/dev/stdout f.c
struct a { long b[2]; };

int d (struct a *p)
{
  int g = 1;

  for (; g >= 0; g--)
    if (p->b[g])
      return g;

  __builtin_unreachable ();
}

;; Function d (d, funcdef_no=0, decl_uid=1907, cgraph_uid=1, symbol_order=0)

;; 2 loops found
;;
;; Loop 0
;;  header 0, latch 1
;;  depth 0, outer -1
;;  nodes: 0 1 2 3 4 5
;; 2 succs { 5 3 }
;; 3 succs { 5 4 }
;; 4 succs { 5 }
;; 5 succs { 1 }

SSA replacement table
N_i -> { O_1 ... O_j } means that N_i replaces O_1, ..., O_j

p_9 -> { p_4(D) }
Incremental SSA update started at block: 2
Number of blocks in CFG: 6
Number of blocks to update: 3 ( 50%)



Value ranges after VRP:

_1: VARYING
p_4(D): VARYING
g_5: [0, 1]
_8: VARYING
p_9: ~[0B, 0B]  EQUIVALENCES: { p_4(D) } (1 elements)
_11: VARYING


f.c: In function ‘d’:
f.c:8:13: warning: array subscript -1 is below array bounds of ‘long int[2]’
[-Warray-bounds]
8 |     if (p->b[g])
  |         ~~~~^~~
d (struct a * p)
{
  int g;
  long int _1;
  long int _8;
  long int _11;

  <bb 2> [local count: 357878152]:
  _8 = p_4(D)->b[1];
  if (_8 != 0)
    goto <bb 5>; [33.33%]
  else
    goto <bb 3>; [66.67%]

  <bb 3> [local count: 238597364]:
  _11 = p_4(D)->b[0];
  if (_11 != 0)
    goto <bb 5>; [33.33%]
  else
    goto <bb 4>; [66.67%]

  <bb 4> [local count: 159072864]:
  _1 = p_4(D)->b[-1];

  <bb 5> [local count: 357878150]:
  # g_5 = PHI <-1(4), 1(2), 0(3)>
  return g_5;

}



;; Function d (d, funcdef_no=0, decl_uid=1907, cgraph_uid=1, symbol_order=0)

;; 2 loops found
;;
;; Loop 0
;;  header 0, latch 1
;;  depth 0, outer -1
;;  nodes: 0 1 2 3 4
;; 2 succs { 4 3 }
;; 3 succs { 4 }
;; 4 succs { 1 }

SSA replacement table
N_i -> { O_1 ... O_j } means that N_i replaces O_1, ..., O_j

p_2 -> { p_4(D) }
Incremental SSA update started at block: 2
Number of blocks in CFG: 5
Number of blocks to update: 2 ( 40%)



Value ranges after VRP:

_1: [0, +INF]
p_2: ~[0B, 0B]  EQUIVALENCES: { p_4(D) } (1 elements)
p_4(D): VARYING
g_5: [0, 1]
_8: VARYING
_9: [0, 1]
_11: VARYING
_12: [-1, 0]


d (struct a * p)
{
  int g;
  _Bool _1;
  long int _8;
  int _9;
  long int _11;
  int _12;

  <bb 2> [local count: 357878152]:
  _8 = p_4(D)->b[1];
  if (_8 != 0)
    goto <bb 4>; [33.33%]
  else
    goto <bb 3>; [66.67%]

  <bb 3> [local count: 238597364]:
  _11 = p_4(D)->b[0];
  _1 = _11 == 0;
  _9 = (int) _1;
  _12 = -_9;

  <bb 4> [local count: 357878150]:
  # g_5 = PHI <_12(3), 1(2)>
  return g_5;

}
>From gcc-bugs-return-612470-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 03:47:24 2018
Return-Path: <gcc-bugs-return-612470-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 64725 invoked by alias); 10 Aug 2018 03:47: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 64638 invoked by uid 48); 10 Aug 2018 03:47:19 -0000
From: "juergen.reuter at desy dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/86907] New: [9.0 regression] bogus warning "No location in expression near"
Date: Fri, 10 Aug 2018 03:47: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: juergen.reuter at desy 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created
Message-ID: <bug-86907-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-08/txt/msg00759.txt.bz2
Content-length: 1628

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

            Bug ID: 86907
           Summary: [9.0 regression] bogus warning "No location in
                    expression near"
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: juergen.reuter at desy dot de
  Target Milestone: ---

Created attachment 44522
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44522&action=edit
Minimal reproducer for the warning.

In the following example, gfortran from version 9 on (I think 8 was ok) is
issuing a bogus warning: 
gfortran  -c reproducer.f90
reproducer.f90:30:49:

     type(t2), dimension(cmd%n_pass) :: adapt_code
                                                 1
Warning: No location in expression near (1)

This is the code:
module m_1
  type, public :: t1
     private
     character(LEN=1), dimension(:), allocatable :: chars
  end type t1

end module m_1

!!!!!

module m_2
  use m_1, t2 => t1

  type :: t3
     private
     integer :: n_pass = 0
   contains
     procedure :: execute => t3_execute
  end type t3

contains

  function eval_string () result (sval)
    type(t2) :: sval
  end function eval_string

  subroutine t3_execute (cmd)
    class(t3), intent(inout) :: cmd
    !!! Creates a bogus version in gfortran 9.0.0
    type(t2), dimension(cmd%n_pass) :: adapt_code
    integer :: i
    do i = 1, cmd%n_pass
       adapt_code(i) = eval_string ()
    end do
  end subroutine t3_execute

end module m_2
>From gcc-bugs-return-612471-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 03:49:31 2018
Return-Path: <gcc-bugs-return-612471-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 102746 invoked by alias); 10 Aug 2018 03:49:31 -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 102650 invoked by uid 48); 10 Aug 2018 03:49:21 -0000
From: "juergen.reuter at desy dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/86907] [9.0 regression] bogus warning "No location in expression near"
Date: Fri, 10 Aug 2018 03:49: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:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: juergen.reuter at desy 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-86907-4-yhz4qub10c@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86907-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86907-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-08/txt/msg00760.txt.bz2
Content-length: 298

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

--- Comment #1 from Jürgen Reuter <juergen.reuter at desy dot de> ---
As remark, the renaming of types t2 => t1 is needed to produce the bug, as well
as the components of t1 being allocatable. The used revision of gfortran was
262687.
>From gcc-bugs-return-612472-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 06:28:16 2018
Return-Path: <gcc-bugs-return-612472-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 74961 invoked by alias); 10 Aug 2018 06:28: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 74876 invoked by uid 55); 10 Aug 2018 06:28:09 -0000
From: "sh at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/85904] [7/8 Regression] configure issue cross compiling on netbsd, with patch
Date: Fri, 10 Aug 2018 06:28: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: build
X-Bugzilla-Severity: normal
X-Bugzilla-Who: sh at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: redi at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-85904-4-HiE1juk5uK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-85904-4@http.gcc.gnu.org/bugzilla/>
References: <bug-85904-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-08/txt/msg00761.txt.bz2
Content-length: 675

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

--- Comment #9 from sh at gcc dot gnu.org ---
Author: sh
Date: Fri Aug 10 06:27:35 2018
New Revision: 263461

URL: https://gcc.gnu.org/viewcvs?rev=263461&root=gcc&view=rev
Log:
libstdc++-v3: Have aligned_alloc() on Newlib

While building for Newlib, some configure checks must be hard coded.
The aligned_alloc() is supported since 2015 in Newlib.

libstdc++-v3/

        PR target/85904
        * configure.ac: Define HAVE_ALIGNED_ALLOC if building for
        Newlib.
        * configure: Regenerate.

Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/configure
    trunk/libstdc++-v3/configure.ac
>From gcc-bugs-return-612473-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 06:31:09 2018
Return-Path: <gcc-bugs-return-612473-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 77973 invoked by alias); 10 Aug 2018 06:30: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 77698 invoked by uid 55); 10 Aug 2018 06:30:34 -0000
From: "sh at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/85904] [7/8 Regression] configure issue cross compiling on netbsd, with patch
Date: Fri, 10 Aug 2018 06:30: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: build
X-Bugzilla-Severity: normal
X-Bugzilla-Who: sh at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: redi at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-85904-4-iuAmTCQfRZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-85904-4@http.gcc.gnu.org/bugzilla/>
References: <bug-85904-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-08/txt/msg00762.txt.bz2
Content-length: 724

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

--- Comment #10 from sh at gcc dot gnu.org ---
Author: sh
Date: Fri Aug 10 06:29:58 2018
New Revision: 263462

URL: https://gcc.gnu.org/viewcvs?rev=263462&root=gcc&view=rev
Log:
libstdc++-v3: Have aligned_alloc() on Newlib

While building for Newlib, some configure checks must be hard coded.
The aligned_alloc() is supported since 2015 in Newlib.

libstdc++-v3/

        PR target/85904
        * configure.ac: Define HAVE_ALIGNED_ALLOC if building for
        Newlib.
        * configure: Regenerate.

Modified:
    branches/gcc-8-branch/libstdc++-v3/ChangeLog
    branches/gcc-8-branch/libstdc++-v3/configure
    branches/gcc-8-branch/libstdc++-v3/configure.ac
>From gcc-bugs-return-612474-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 06:32:40 2018
Return-Path: <gcc-bugs-return-612474-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 80790 invoked by alias); 10 Aug 2018 06:32: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 80730 invoked by uid 55); 10 Aug 2018 06:32:36 -0000
From: "sh at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/85904] [7/8 Regression] configure issue cross compiling on netbsd, with patch
Date: Fri, 10 Aug 2018 06:32: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: build
X-Bugzilla-Severity: normal
X-Bugzilla-Who: sh at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: redi at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-85904-4-iXb1LRP5ZJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-85904-4@http.gcc.gnu.org/bugzilla/>
References: <bug-85904-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-08/txt/msg00763.txt.bz2
Content-length: 724

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

--- Comment #11 from sh at gcc dot gnu.org ---
Author: sh
Date: Fri Aug 10 06:31:57 2018
New Revision: 263463

URL: https://gcc.gnu.org/viewcvs?rev=263463&root=gcc&view=rev
Log:
libstdc++-v3: Have aligned_alloc() on Newlib

While building for Newlib, some configure checks must be hard coded.
The aligned_alloc() is supported since 2015 in Newlib.

libstdc++-v3/

        PR target/85904
        * configure.ac: Define HAVE_ALIGNED_ALLOC if building for
        Newlib.
        * configure: Regenerate.

Modified:
    branches/gcc-7-branch/libstdc++-v3/ChangeLog
    branches/gcc-7-branch/libstdc++-v3/configure
    branches/gcc-7-branch/libstdc++-v3/configure.ac
>From gcc-bugs-return-612475-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 09:29:50 2018
Return-Path: <gcc-bugs-return-612475-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 99274 invoked by alias); 10 Aug 2018 09:29:49 -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 99223 invoked by uid 48); 10 Aug 2018 09:29:42 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/86905] g++ ICE on valid code: verify_cgraph_node failed
Date: Fri, 10 Aug 2018 09:29: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: unknown
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 cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-86905-4-KLYMot3YdH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86905-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86905-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-08/txt/msg00764.txt.bz2
Content-length: 625

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2018-08-10
                 CC|                            |marxin at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, it's old, one needs enabled checking. Started with GCC 5.1.0.
>From gcc-bugs-return-612476-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 09:30:59 2018
Return-Path: <gcc-bugs-return-612476-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 113172 invoked by alias); 10 Aug 2018 09:30: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 110037 invoked by uid 48); 10 Aug 2018 09:30:50 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/86900] -gdwarf-5 -O2 -ffunction-sections = assembler error
Date: Fri, 10 Aug 2018 09:30: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.2.1
X-Bugzilla-Keywords:
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: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-86900-4-kwOKYBJVqO@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86900-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86900-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-08/txt/msg00765.txt.bz2
Content-length: 592

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2018-08-10
                 CC|                            |marxin at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Can you please provide a test-case?
>From gcc-bugs-return-612477-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 09:32:04 2018
Return-Path: <gcc-bugs-return-612477-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 114623 invoked by alias); 10 Aug 2018 09: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 114562 invoked by uid 48); 10 Aug 2018 09:32:00 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/86684] ICE in extract_insn, at recog.c:2304 on ppc64le
Date: Fri, 10 Aug 2018 09:32: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: 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: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-86684-4-pMOwYiZTR9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86684-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86684-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-08/txt/msg00766.txt.bz2
Content-length: 349

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

--- Comment #6 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to Segher Boessenkool from comment #5)
> I cannot reproduce this, not on gcc14 either.  I notice you use
> ppc64le-linux,
> while the canonical name is powerpc64le-linux; maybe that matters?

No it does not matter.
>From gcc-bugs-return-612478-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 09:32:28 2018
Return-Path: <gcc-bugs-return-612478-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 115478 invoked by alias); 10 Aug 2018 09:32: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 115432 invoked by uid 55); 10 Aug 2018 09:32:23 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/85799] __builin_expect doesn't propagate through inlined functions
Date: Fri, 10 Aug 2018 09:32:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-85799-4-n0K3tO4t6l@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-85799-4@http.gcc.gnu.org/bugzilla/>
References: <bug-85799-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-08/txt/msg00767.txt.bz2
Content-length: 1112

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

--- Comment #9 from Martin Liška <marxin at gcc dot gnu.org> ---
Author: marxin
Date: Fri Aug 10 09:31:51 2018
New Revision: 263465

URL: https://gcc.gnu.org/viewcvs?rev=263465&root=gcc&view=rev
Log:
Strip only selected predictors after early tree passes (PR
tree-optimization/85799).

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

        PR tree-optimization/85799
        * passes.def: Add argument for pass_strip_predict_hints.
        * predict.c (class pass_strip_predict_hints): Add new argument
        early_p.
        (strip_predictor_early): New function.
        (pass_strip_predict_hints::execute): Call the function to
        strip predictors.
        (strip_predict_hints): New function.
        * predict.def: Fix comment.
2018-08-10  Martin Liska  <mliska@suse.cz>

        PR tree-optimization/85799
        * gcc.dg/pr85799.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/pr85799.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/passes.def
    trunk/gcc/predict.c
    trunk/gcc/predict.def
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-612479-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 09:33:04 2018
Return-Path: <gcc-bugs-return-612479-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 116448 invoked by alias); 10 Aug 2018 09:33:03 -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 116306 invoked by uid 48); 10 Aug 2018 09:32:58 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/85799] __builin_expect doesn't propagate through inlined functions
Date: Fri, 10 Aug 2018 09:33:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.1.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: P4
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-85799-4-kIpuZFu56G@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-85799-4@http.gcc.gnu.org/bugzilla/>
References: <bug-85799-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-08/txt/msg00768.txt.bz2
Content-length: 443

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

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

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

--- Comment #10 from Martin Liška <marxin at gcc dot gnu.org> ---
Fixed on trunk.
>From gcc-bugs-return-612480-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 09:35:24 2018
Return-Path: <gcc-bugs-return-612480-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 118296 invoked by alias); 10 Aug 2018 09:35: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 118233 invoked by uid 48); 10 Aug 2018 09:35:20 -0000
From: "jan.kratochvil at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/86900] -gdwarf-5 -O2 -ffunction-sections = assembler error
Date: Fri, 10 Aug 2018 09:35: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.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jan.kratochvil at redhat dot com
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: attachments.created
Message-ID: <bug-86900-4-cXTMn4TUAq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86900-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86900-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-08/txt/msg00769.txt.bz2
Content-length: 288

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

--- Comment #2 from Jan Kratochvil <jan.kratochvil at redhat dot com> ---
Created attachment 44523
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44523&action=edit
1.cc.xz

Sorry, the 1.cc file somehow did not get attached.
>From gcc-bugs-return-612482-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 09:43:45 2018
Return-Path: <gcc-bugs-return-612482-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 32796 invoked by alias); 10 Aug 2018 09:43: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 32154 invoked by uid 55); 10 Aug 2018 09:43:38 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/83610] Come up with __builtin_expect_with_probabilty
Date: Fri, 10 Aug 2018 09:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-83610-4-MPFjbZYWC8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83610-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83610-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-08/txt/msg00771.txt.bz2
Content-length: 2638

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

--- Comment #7 from Martin Liška <marxin at gcc dot gnu.org> ---
Author: marxin
Date: Fri Aug 10 09:43:06 2018
New Revision: 263466

URL: https://gcc.gnu.org/viewcvs?rev=263466&root=gcc&view=rev
Log:
Introduce __builtin_expect_with_probability (PR target/83610).

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

        PR target/83610
        * builtin-types.def (BT_FN_LONG_LONG_LONG_DOUBLE): Add new
        function type.
        * builtins.c (expand_builtin_expect_with_probability):
        New function.
        (expand_builtin_expect_with_probability): New function.
        (build_builtin_expect_predicate): Add new argumnet probability
        for BUILT_IN_EXPECT_WITH_PROBABILITY.
        (fold_builtin_expect):
        (fold_builtin_2):
        (fold_builtin_3):
        * builtins.def (BUILT_IN_EXPECT_WITH_PROBABILITY):
        * builtins.h (fold_builtin_expect): Set new argument.
        * doc/extend.texi: Document __builtin_expect_with_probability.
        * doc/invoke.texi: Likewise.
        * gimple-fold.c (gimple_fold_call): Pass new argument.
        * ipa-fnsummary.c (find_foldable_builtin_expect): Handle
        also BUILT_IN_EXPECT_WITH_PROBABILITY.
        * predict.c (get_predictor_value): New function.
        (expr_expected_value): Add new argument probability. Assume
        that predictor and probability are always non-null.
        (expr_expected_value_1): Likewise.  For __builtin_expect and
        __builtin_expect_with_probability set probability.  Handle
        combination in binary expressions.
        (tree_predict_by_opcode): Simplify code by simply calling
        get_predictor_value.
        (pass_strip_predict_hints::execute): Add handling of
        BUILT_IN_EXPECT_WITH_PROBABILITY.
        * predict.def (PRED_BUILTIN_EXPECT_WITH_PROBABILITY): Add
        new predictor.
        * tree.h (DECL_BUILT_IN_P): New function.
2018-08-10  Martin Liska  <mliska@suse.cz>

        PR target/83610
        * gcc.dg/predict-17.c: New test.
        * gcc.dg/predict-18.c: New test.
        * gcc.dg/predict-19.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/predict-17.c
    trunk/gcc/testsuite/gcc.dg/predict-18.c
    trunk/gcc/testsuite/gcc.dg/predict-19.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/builtin-types.def
    trunk/gcc/builtins.c
    trunk/gcc/builtins.def
    trunk/gcc/builtins.h
    trunk/gcc/doc/extend.texi
    trunk/gcc/doc/invoke.texi
    trunk/gcc/gimple-fold.c
    trunk/gcc/ipa-fnsummary.c
    trunk/gcc/predict.c
    trunk/gcc/predict.def
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree.h
>From gcc-bugs-return-612481-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 10 09:43:40 2018
Return-Path: <gcc-bugs-return-612481-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 32186 invoked by alias); 10 Aug 2018 09:43: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 32162 invoked by uid 89); 10 Aug 2018 09:43:39 -0000
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-6.1 required=5.0 testsºYES_00,GIT_PATCH_2,KAM_ASCII_DIVIDERS,KAM_SHORT,SPF_PASS autolearn=ham version=3.3.2 spammy=Consider
X-HELO: foss.arm.com
Received: from usa-sjc-mx-foss1.foss.arm.com (HELO foss.arm.com) (217.140.101.70) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 10 Aug 2018 09:43:37 +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 C06DD80D;	Fri, 10 Aug 2018 02:43:35 -0700 (PDT)
Received: from e120077-lin.cambridge.arm.com (e120077-lin.cambridge.arm.com [10.2.207.74])	by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 279273F5D4;	Fri, 10 Aug 2018 02:43:34 -0700 (PDT)
Subject: Re: [Bug other/86904] New: Column numbers ignore tab characters
To: "dmalcolm at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>, gcc-bugs@gcc.gnu.org
References: <bug-86904-4@http.gcc.gnu.org/bugzilla/>
From: "Richard Earnshaw (lists)" <Richard.Earnshaw@arm.com>
Openpgp: preference=signencrypt
Message-ID: <59df9ea5-ed3a-3ff3-e5c1-12772945e10c@arm.com>
Date: Fri, 10 Aug 2018 09:43:00 -0000
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1
MIME-Version: 1.0
In-Reply-To: <bug-86904-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-SW-Source: 2018-08/txt/msg00770.txt.bz2
Content-length: 6094

On 09/08/18 21:08, dmalcolm at gcc dot gnu.org wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id†904
>
>             Bug ID: 86904
>            Summary: Column numbers ignore tab characters
>            Product: gcc
>            Version: unknown
>             Status: UNCONFIRMED
>           Keywords: diagnostic
>           Severity: normal
>           Priority: P3
>          Component: other
>           Assignee: unassigned at gcc dot gnu.org
>           Reporter: dmalcolm at gcc dot gnu.org
>   Target Milestone: ---
>
> As noted in https://gcc.gnu.org/bugzilla/show_bug.cgi?id\x19165#c21 :
>
> /* Both gcc and emacs number source *lines* starting at 1, but
>    they have differing conventions for *columns*.
>
>    GCC uses a 1-based convention for source columns,
>    whereas Emacs's M-x column-number-mode uses a 0-based convention.
>
>    For example, an error in the initial, left-hand
>    column of source line 3 is reported by GCC as:
>
>       some-file.c:3:1: error: ...etc...
>
>    On navigating to the location of that error in Emacs
>    (e.g. via "next-error"),
>    the locus is reported in the Mode Line
>    (assuming M-x column-number-mode) as:
>
>      some-file.c   10%   (3, 0)
>
>    i.e. "3:1:" in GCC corresponds to "(3, 0)" in Emacs.  */
>
> In terms of 0 vs 1, GCC complies with the GNU standards here:
> https://www.gnu.org/prep/standards/html_node/Errors.html
>
> However our "column numbers" are also simply a 1-based byte-count, so a tab
> character is treated by us as simply an increment of 1 right now.
>
> (see also PR 49973, which covers the case of multibyte characters).
>
> It turns out that we convert tab characters to *single* space characters when
> printing source code.
>
> This behavior has been present since Manu first implemented
> -fdiagnostics-show-caret in r186305 (aka
> 5a9830842f69ebb059061e26f8b0699cbd85121e, PR 24985), where it was this logic
> (there in diagnostic.c's diagnostic_show_locus):
>       char c = *line == '\t' ? ' ' : *line;
>       pp_character (context->printer, c);
>
> (that logic is now in diagnostic-show-locus.c in layout::print_source_line)
>
> This is arguably a bug, but it's intimately linked to the way in which we track
> "column numbers".
>
> Our "column numbers" are currently simply a 1-based byte-count, I believe, so a
> tab character is treated by us as simply an increment of 1 right now.
>
> There are similar issues with encodings that aren't 1 byte per character (e.g.
> non-ASCII unicode characters), which are being tracked in PR 49973.
>
> Presumably, when we print source lines containing tab characters, we should
> emit a number of spaces to reach a tab stop.
>
> Consider a diagnostic with a multiline range covering the
> following source (and beyond):
>
>       indent: 6 (tabs: 0, spaces: 6)
>        indent: 7 (tabs: 0, spaces: 7)
>         indent: 8 (tabs: 1, spaces: 0)
>          indent: 9 (tabs: 1, spaces: 1)
>
> i.e.:
>
>   "      indent: 6 (tabs: 0, spaces: 6)\n"
>   "       indent: 7 (tabs: 0, spaces: 7)\n"
>   "\tindent: 8 (tabs: 1, spaces: 0)\n"
>   "\t indent: 9 (tabs: 1, spaces: 1)\n"
>
> Currently diagnostic_show_locus prints:
>
>        indent: 6 (tabs: 0, spaces: 6)
>        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>         indent: 7 (tabs: 0, spaces: 7)
>         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>   indent: 8 (tabs: 1, spaces: 0)
>   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>    indent: 9 (tabs: 1, spaces: 1)
>    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> i.e:
>   "       indent: 6 (tabs: 0, spaces: 6)\n"
>   "       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"
>   "        indent: 7 (tabs: 0, spaces: 7)\n"
>   "        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"
>   "  indent: 8 (tabs: 1, spaces: 0)\n"
>   "  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"
>   "   indent: 9 (tabs: 1, spaces: 1)\n"
>   "   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"
>
> which misrepresents the indentation of the user's code.
>
> It should respect tabstops, and print:
>
>        indent: 6 (tabs: 0, spaces: 6)
>        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>         indent: 7 (tabs: 0, spaces: 7)
>         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>          indent: 8 (tabs: 1, spaces: 0)
>          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>           indent: 9 (tabs: 1, spaces: 1)
>           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> i.e.:
>
>   "       indent: 6 (tabs: 0, spaces: 6)\n"
>   "       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"
>   "        indent: 7 (tabs: 0, spaces: 7)\n"
>   "        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"
>   "         indent: 8 (tabs: 1, spaces: 0)\n"
>   "         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"
>   "          indent: 9 (tabs: 1, spaces: 1)\n"
>   "          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"
>
> We should also handle erroneous leading spaces before a tab, so that e.g.
>
>   "  \tfoo"
>
> should be printed as if it were:
>
>  "\tfoo"
>
> (given that that's what the user's editor is probably printing it as).
>
> Similarly, we should presumably print "8" for the column number for the 'f' of
> "foo".  However, IDEs are expecting GCC's existing behavior, so we should
> probably add a command-line option for controlling this.
>
> Adding a left margin with line numbers (as of r263450) doesn't change this bug,
> but makes fixing it slightly more complicated.
>
> Maybe:
>   -fdiagnostics-x-coord=bytes : count of bytes
>   -fdiagnostics-x-coord=characters : count of characters (not special-casing
> tab)
>   -fdiagnostics-x-coord=columns : count of columns: as per characters, but with
> tabs doing tabstops

how about -fdiagnostics-x-coord=visual-[n]

Where n is the size of a hard tab?  Some folks change the tab stop to 4,
for example.  Or maybe ...coord=tab[-n], where -n defaults to "-8".

R.

> (currently we use "bytes"  Not sure if we need "characters")
>
> I'm thinking that internally, we should continue to track byte offsets, but
> make the option affect the presentation of the number in diagnostics*.c.
>
> (should it affect -fdiagnostics-parseable-fixits ?
> see also the Emacs RFE for parseable fixits:
>   https://debbugs.gnu.org/cgi/bugreport.cgi?bug%987 )
>


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

only message in thread, other threads:[~2018-08-08 18:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-86651-4@http.gcc.gnu.org/bugzilla/>
2018-08-08 18:19 ` [Bug target/86651] [8/9 Regression] lto-wrapper.exe: fatal error: simple_object_copy_lto_debug_sections not implemented: Invalid argument jwjagersma at gmail dot com

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