public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/81414] New: ICE in fma steering on AArch64/cortex-a57
@ 2017-07-12 14:06 amker at gcc dot gnu.org
  0 siblings, 0 replies; only message in thread
From: amker at gcc dot gnu.org @ 2017-07-12 14:06 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: 145353 bytes --]

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

            Bug ID: 81414
           Summary: ICE in fma steering on AArch64/cortex-a57
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: amker at gcc dot gnu.org
  Target Milestone: ---

Hi,
Compiling below test case:

typedef __Float32x2_t float32x2_t;
__inline float32x2_t vdup_n_f32(float) {}

float32x2_t vfma_lane_f32(float32x2_t __a, float32x2_t __b) {
  int __lane;
  return __builtin_aarch64_fmav2sf(__b, vdup_n_f32(__lane), __a);
}

With options:
$ g++ x.cc -mcpu=cortex-a57 -O2 -o x.S
gives below ICE:
x.cc: In function ‘float32x2_t vfma_lane_f32(float32x2_t, float32x2_t)’:
x.cc:10:1: internal compiler error: in analyze, at
config/aarch64/cortex-a57-fma-steering.c:977
 }
 ^
0x14198f8 func_fma_steering::analyze()
        ../../gcc/gcc/config/aarch64/cortex-a57-fma-steering.c:977
0x1419af3 func_fma_steering::execute_fma_steering()
        ../../gcc/gcc/config/aarch64/cortex-a57-fma-steering.c:1026
0x1419deb pass_fma_steering::execute(function*)
        ../../gcc/gcc/config/aarch64/cortex-a57-fma-steering.c:1062
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
>From gcc-bugs-return-568489-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Jul 12 14:10:50 2017
Return-Path: <gcc-bugs-return-568489-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 14373 invoked by alias); 12 Jul 2017 14:10: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 14284 invoked by uid 48); 12 Jul 2017 14:10:44 -0000
From: "ktkachov at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81414] [6/7/8 Regression] ICE in fma steering on AArch64/cortex-a57
Date: Wed, 12 Jul 2017 14:10: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: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ktkachov at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_known_to_work keywords cf_reconfirmed_on cc everconfirmed short_desc target_milestone cf_known_to_fail
Message-ID: <bug-81414-4-ylz8Un13IA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81414-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81414-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: 2017-07/txt/msg01040.txt.bz2
Content-length: 967

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

ktkachov at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
      Known to work|                            |5.4.1
           Keywords|                            |ice-on-valid-code
   Last reconfirmed|                            |2017-07-12
                 CC|                            |ktkachov at gcc dot gnu.org
     Ever confirmed|0                           |1
            Summary|ICE in fma steering on      |[6/7/8 Regression] ICE in
                   |AArch64/cortex-a57          |fma steering on
                   |                            |AArch64/cortex-a57
   Target Milestone|---                         |6.5
      Known to fail|                            |6.4.1

--- Comment #1 from ktkachov at gcc dot gnu.org ---
Confirmed.
>From gcc-bugs-return-568490-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Jul 12 14:18:47 2017
Return-Path: <gcc-bugs-return-568490-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 66040 invoked by alias); 12 Jul 2017 14:18:47 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 65927 invoked by uid 48); 12 Jul 2017 14:18:43 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81069] nvptx offloading: "-O1" execution test of "libgomp.oacc-fortran/nested-function-1.f90" timeout/FAIL
Date: Wed, 12 Jul 2017 14:18: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: 7.0
X-Bugzilla-Keywords: openacc
X-Bugzilla-Severity: major
X-Bugzilla-Who: vries at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: vries at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-81069-4-eLncmsSYS5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81069-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81069-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: 2017-07/txt/msg01041.txt.bz2
Content-length: 659

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

--- Comment #5 from Tom de Vries <vries at gcc dot gnu.org> ---
Created attachment 41733
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41733&action=edit
tentative patch, starts neutering alap in nvptx_single

> But in this case, we're extending the sese region being neutered to include
> a branch that doesn't have to be neutered. I don't think there's a purpose in
> doing that.

This patch postpone insertion of the diverging branch to alap, by skipping over
unconditional jumps at the start of nvptx_single.

This allows the test-case to pass (because we don't run into the ptx bug).
>From gcc-bugs-return-568491-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Jul 12 14:49:09 2017
Return-Path: <gcc-bugs-return-568491-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 48370 invoked by alias); 12 Jul 2017 14:49:09 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 48209 invoked by uid 48); 12 Jul 2017 14:49:05 -0000
From: "gccbugzilla.severach at spamgourmet dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/81400] Stack smashing not caught by stack protector strong and allowing me to stack smash
Date: Wed, 12 Jul 2017 14:49: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: 7.1.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: gccbugzilla.severach at spamgourmet dot com
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-81400-4-RZtXRIB3jz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81400-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81400-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: 2017-07/txt/msg01042.txt.bz2
Content-length: 805

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

--- Comment #3 from Chris Severance <gccbugzilla.severach at spamgourmet dot com> ---
Unless there's a security reason 0 should never be used as a canary value.
Errant \0 should be caught 100% of the time. When I built malloc canaries for
NPPTextFX I expressly avoided \0.

data[SMASH_ALIGN]='f' should be caught by bounds checking or a shadow stack,
not ssp. It doesn't overwrite any canaries. It only writes to icanary which is
my canary, not a gcc canary. The only time it should be caught by ssp is when
icanary is disabled and it overwrites CNRY at the top of the stack.

For debug builds canaries should be placed between every stack variable and in
the unused space of aligned but undersized variables. Is there such an option?
>From gcc-bugs-return-568492-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Jul 12 15:20:26 2017
Return-Path: <gcc-bugs-return-568492-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 39095 invoked by alias); 12 Jul 2017 15:20:26 -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 38841 invoked by uid 48); 12 Jul 2017 15:20:21 -0000
From: "dmalcolm at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/81405] [8 Regression] Invalid write of size 2 in line_corrections::add_hint(fixit_hint const*) (diagnostic-show-locus.c:1514)
Date: Wed, 12 Jul 2017 15:20:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: 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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on version assigned_to everconfirmed
Message-ID: <bug-81405-4-E67auNWMEl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81405-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81405-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: 2017-07/txt/msg01043.txt.bz2
Content-length: 667

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

David Malcolm <dmalcolm at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2017-07-12
            Version|7.0                         |8.0
           Assignee|unassigned at gcc dot gnu.org      |dmalcolm at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Thanks for filing.  Confirmed.  Am investigating.
>From gcc-bugs-return-568493-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Jul 12 15:25:52 2017
Return-Path: <gcc-bugs-return-568493-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 58696 invoked by alias); 12 Jul 2017 15:25: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 58566 invoked by uid 55); 12 Jul 2017 15:25:45 -0000
From: "gjl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79883] avr i18n: untranslated "interrupt" or "signal"
Date: Wed, 12 Jul 2017 15: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: 7.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: minor
X-Bugzilla-Who: gjl at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P5
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79883-4-P7BZUWUVEz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79883-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79883-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: 2017-07/txt/msg01044.txt.bz2
Content-length: 567

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

--- Comment #7 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
Author: gjl
Date: Wed Jul 12 15:25:07 2017
New Revision: 250156

URL: https://gcc.gnu.org/viewcvs?rev=250156&root=gcc&view=rev
Log:
        PR target/79883
        * config/avr/avr.c (avr_set_current_function): In diagnostic
        messages: Quote keywords and (parts of) identifiers.
        [WITH_AVRLIBC]: Warn for functions named "ISR", "SIGNAL" or
        "INTERUPT".


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/avr/avr.c
>From gcc-bugs-return-568494-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Jul 12 15:31:59 2017
Return-Path: <gcc-bugs-return-568494-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 16957 invoked by alias); 12 Jul 2017 15:31: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 16768 invoked by uid 55); 12 Jul 2017 15:31:54 -0000
From: "gjl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79883] avr i18n: untranslated "interrupt" or "signal"
Date: Wed, 12 Jul 2017 15: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: 7.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: minor
X-Bugzilla-Who: gjl at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P5
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79883-4-vLA4BjGxP9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79883-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79883-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: 2017-07/txt/msg01045.txt.bz2
Content-length: 652

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

--- Comment #8 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
Author: gjl
Date: Wed Jul 12 15:31:22 2017
New Revision: 250157

URL: https://gcc.gnu.org/viewcvs?rev=250157&root=gcc&view=rev
Log:
gcc/
        Backport from 2017-07-12 trunk r250156.
        PR target/79883
        * config/avr/avr.c (avr_set_current_function): In diagnostic
        messages: Quote keywords and (parts of) identifiers.
        [WITH_AVRLIBC]: Warn for functions named "ISR", "SIGNAL" or
        "INTERRUPT".

Modified:
    branches/gcc-7-branch/gcc/ChangeLog
    branches/gcc-7-branch/gcc/config/avr/avr.c
>From gcc-bugs-return-568496-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Jul 12 15:34:58 2017
Return-Path: <gcc-bugs-return-568496-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23262 invoked by alias); 12 Jul 2017 15:34: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 23189 invoked by uid 48); 12 Jul 2017 15:34:54 -0000
From: "steven at pemberton dot nl" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libgcc/81415] termio ioctl returns incorrect value for some characters
Date: Wed, 12 Jul 2017 15:34:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libgcc
X-Bugzilla-Version: 5.4.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: steven at pemberton dot nl
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-81415-4-T2eMhNSuAG@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81415-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81415-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: 2017-07/txt/msg01047.txt.bz2
Content-length: 172

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

--- Comment #1 from Steven Pemberton <steven at pemberton dot nl> ---
This is with the default gcc on Ubuntu 16.04.02
>From gcc-bugs-return-568495-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Jul 12 15:34:05 2017
Return-Path: <gcc-bugs-return-568495-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 20872 invoked by alias); 12 Jul 2017 15:34: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 20395 invoked by uid 48); 12 Jul 2017 15:34:00 -0000
From: "steven at pemberton dot nl" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libgcc/81415] New: termio ioctl returns incorrect value for some characters
Date: Wed, 12 Jul 2017 15:34:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libgcc
X-Bugzilla-Version: 5.4.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: steven at pemberton dot nl
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-81415-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: 2017-07/txt/msg01046.txt.bz2
Content-length: 3110

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

            Bug ID: 81415
           Summary: termio ioctl returns incorrect value for some
                    characters
           Product: gcc
           Version: 5.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgcc
          Assignee: unassigned at gcc dot gnu.org
          Reporter: steven at pemberton dot nl
  Target Milestone: ---

Created attachment 41734
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41734&action=edit
termio.c calls ioctl to get erase, interrupt and suspend characters

When calling ioctl to request key bindings, it returns a random value for the
Suspend binding.

On my system, if I do a stty -a I get this:

$ stty -a
 speed 38400 baud; rows 24; columns 80; line = 0;
 intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = M-^?; eol2 =
M-^?;
 swtch = M-^?; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W;
 lnext = ^V; flush = ^O; min = 1; time = 0;
 -parenb -parodd cs8 hupcl -cstopb cread -clocal -crtscts
 -ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff
 -iuclc ixany imaxbel iutf8
 opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0
ff0
 isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt
 echoctl echoke

If I run the enclosed C program, which does an ioctl for TCGETA:

       if (ioctl(0, TCGETA, (char*) &sgbuf) == 0) {

and then retrieves the key bindings for interrupt, erase, and suspend (^C, ^?,
and ^Z in the above output). It returns Interrupt and Erase correctly, but it
returns the wrong value for Suspend; each time I run the program it returns a
different value, though it consistently returns the same (wrong) value within
the program:

   if ((int) sgbuf.c_cc[VSUSP] != 0377) {
    printf("Suspend=%i\n", (int)sgbuf.c_cc[VSUSP]);
   }

The program calls the ioctl three times to see if it always returns the same
value within the program. It does.

An example output:
 Erase= 127, Interrupt=3, Suspend=31
 Erase= 127, Interrupt=3, Suspend=31
 Erase= 127, Interrupt=3, Suspend=31

but the next time I run it:

 Erase= 127, Interrupt=3, Suspend=171
 Erase= 127, Interrupt=3, Suspend=171
 Erase= 127, Interrupt=3, Suspend=171

This is attachment termio.c

termios.h says there are 17 characters (0..16) in the c_cc buffer. If I print
them all out (here I've run it three times), it seems like 4 characters change
their value between calls: 8 (VSTART) 9 (VSTOP) 10 (VSUSP) 16 (VEOL2)

   0:3 1:28 2:127 3:21 4:4 5:0 6:1 7:255 8: 18 9:122 10:99 11:255 12:127 13:0
14:0 15:0 16:134
    0:3 1:28 2:127 3:21 4:4 5:0 6:1 7:255 8:215 9:152 10:145 11:255 12:127 13:0
14:0 15:0 16:129
    0:3 1:28 2:127 3:21 4:4 5:0 6:1 7:255 8: 10 9:97 10:251 11:255 12:127 13:0
14:0 15:0 16:239

(This produced by attachment termio2.c)

The equivalent function from termios, namely tcgetattr, seems to give the right
results, consistently over calls.
>From gcc-bugs-return-568497-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Jul 12 15:36:38 2017
Return-Path: <gcc-bugs-return-568497-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 26095 invoked by alias); 12 Jul 2017 15:36:38 -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 26012 invoked by uid 48); 12 Jul 2017 15:36:34 -0000
From: "steven at pemberton dot nl" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libgcc/81415] termio ioctl returns incorrect value for some characters
Date: Wed, 12 Jul 2017 15:36:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libgcc
X-Bugzilla-Version: 5.4.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: steven at pemberton dot nl
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-81415-4-hJP3bOmO9M@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81415-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81415-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: 2017-07/txt/msg01048.txt.bz2
Content-length: 276

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

--- Comment #2 from Steven Pemberton <steven at pemberton dot nl> ---
Created attachment 41735
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41735&action=edit
termio2.c Second test case, prints all 17 bindings.
>From gcc-bugs-return-568498-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Jul 12 15:38:17 2017
Return-Path: <gcc-bugs-return-568498-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 72783 invoked by alias); 12 Jul 2017 15:38: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 72492 invoked by uid 48); 12 Jul 2017 15:38:12 -0000
From: "steven at pemberton dot nl" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libgcc/81415] termio ioctl returns incorrect value for some characters
Date: Wed, 12 Jul 2017 15:38:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libgcc
X-Bugzilla-Version: 5.4.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: steven at pemberton dot nl
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-81415-4-M1uX5O4knr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81415-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81415-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: 2017-07/txt/msg01049.txt.bz2
Content-length: 191

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

--- Comment #3 from Steven Pemberton <steven at pemberton dot nl> ---
$ gcc --version
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
>From gcc-bugs-return-568499-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Jul 12 15:38:36 2017
Return-Path: <gcc-bugs-return-568499-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 74218 invoked by alias); 12 Jul 2017 15:38: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 73722 invoked by uid 48); 12 Jul 2017 15:38:31 -0000
From: "gjl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79883] avr i18n: untranslated "interrupt" or "signal"
Date: Wed, 12 Jul 2017 15:38: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: 7.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: minor
X-Bugzilla-Who: gjl at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P5
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.2
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution target_milestone
Message-ID: <bug-79883-4-vg0izJxgLL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79883-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79883-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: 2017-07/txt/msg01050.txt.bz2
Content-length: 951

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

Georg-Johann Lay <gjl at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |7.2

--- Comment #9 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
Fixed in 7.2.

The respective parts are quoted now.

The function name is not repeated in the diagnostics as that name preceeds all
the messages like in:

foo.c: In function 'main':
foo.c:3:5: error: ...
...

Only the diagnostic complaining about a missing "__vector" prefix repeats the
function name, but for the other diagnostics (like wrong prototype) the very
name doesn't actually matter.

Also enclosed in WITH_AVRLIBC now because this is naming convention of
AVR-LibC.
>From gcc-bugs-return-568500-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Jul 12 16:05:47 2017
Return-Path: <gcc-bugs-return-568500-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 22500 invoked by alias); 12 Jul 2017 16:05:46 -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 17618 invoked by uid 48); 12 Jul 2017 16:05:42 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81069] nvptx offloading: "-O1" execution test of "libgomp.oacc-fortran/nested-function-1.f90" timeout/FAIL
Date: Wed, 12 Jul 2017 16:05: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: 7.0
X-Bugzilla-Keywords: openacc
X-Bugzilla-Severity: major
X-Bugzilla-Who: vries at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: vries at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.isobsolete attachments.created
Message-ID: <bug-81069-4-hN9aDnNzoG@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81069-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81069-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: 2017-07/txt/msg01051.txt.bz2
Content-length: 516

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

Tom de Vries <vries at gcc dot gnu.org> changed:

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

--- Comment #6 from Tom de Vries <vries at gcc dot gnu.org> ---
Created attachment 41736
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41736&action=edit
updated patch
>From gcc-bugs-return-568501-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Jul 12 16:35:59 2017
Return-Path: <gcc-bugs-return-568501-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 129736 invoked by alias); 12 Jul 2017 16:35: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 124887 invoked by uid 48); 12 Jul 2017 16:35:52 -0000
From: "bz0815 at tirol dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/81416] New: OpenMP craches if large arrays passed
Date: Wed, 12 Jul 2017 16: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: 5.4.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: bz0815 at tirol 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-81416-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: 2017-07/txt/msg01052.txt.bz2
Content-length: 2451

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

            Bug ID: 81416
           Summary: OpenMP craches if large arrays passed
           Product: gcc
           Version: 5.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: bz0815 at tirol dot com
  Target Milestone: ---

gfortran crashes if OpenMP is activated and large arrays are passed:

$ cat mod.f08
MODULE Mod
  USE OMP_LIB
  IMPLICIT NONE
CONTAINS
  SUBROUTINE Print_Info(b)
    DOUBLE PRECISION,DIMENSION(:),INTENT(out) :: b
    b = 0.0
!$OMP PARALLEL
    PRINT *,'Hello'
    PRINT *,omp_get_num_threads()
!$OMP END PARALLEL
  END SUBROUTINE Print_Info
END MODULE Mod

$ cat prog.f08
PROGRAM Prog
  USE Mod
  USE OMP_LIB
  IMPLICIT NONE

  INTEGER :: nthreads
  INTEGER,PARAMETER :: n = 131072
!  INTEGER,PARAMETER :: n = 262144
  DOUBLE PRECISION,DIMENSION(n) :: b

  nthreads = 4

  CALL OMP_SET_NUM_THREADS(nthreads)

  PRINT *,omp_get_num_procs()
  PRINT *,omp_get_max_threads()
  PRINT *,omp_get_num_threads()

  CALL Print_Info(b)

END PROGRAM Prog

If n is 131072 the program compiles and shows the expeced result:

gfortran -Wall -O2 -std=f2008 -fcheck=all -fopenmp -c mod.f08 -o mod.o
gfortran -Wall -O2 -std=f2008 -fcheck=all -fopenmp  -o prog mod.o prog.f08
-lgomp

$ ./prog
           8
           4
           1
 Hello
           4
 Hello
           4
 Hello
           4
 Hello
           4

If n is 262144 the program compiles but craches:

$ ./prog
Segmentation fault (core dumped)

The program runs if OpenMP is removed:

gfortran -Wall -O2 -std=f2008 -fcheck=all -c mod.f08 -o mod.o
gfortran -Wall -O2 -std=f2008 -fcheck=all  -o prog mod.o prog.f08 -lgomp

Wolfgang@DESKTOP ~/projects/test/openmp
$ ./prog
           8
           4
           1
 Hello
           1

The system used is:

$ uname -a
CYGWIN_NT-10.0 DESKTOP 2.8.1(0.312/5/3) 2017-07-03 14:11 x86_64 Cygwin

The compiler used is:

$ gfortran --version
GNU Fortran (GCC) 5.4.0
Copyright (C) 2015 Free Software Foundation, Inc.

GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING

I experienced the same behavior also on other systems and other compler
versions.
>From gcc-bugs-return-568502-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Jul 12 16:37:58 2017
Return-Path: <gcc-bugs-return-568502-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 107310 invoked by alias); 12 Jul 2017 16:37: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 100742 invoked by uid 48); 12 Jul 2017 16:37:54 -0000
From: "tetra2005 at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/59521] __builtin_expect not effective in switch
Date: Wed, 12 Jul 2017 16:37: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: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: tetra2005 at gmail dot com
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: attachments.isobsolete attachments.created
Message-ID: <bug-59521-4-tjGr699ETX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-59521-4@http.gcc.gnu.org/bugzilla/>
References: <bug-59521-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: 2017-07/txt/msg01053.txt.bz2
Content-length: 820

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

Yuri Gribov <tetra2005 at gmail dot com> changed:

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

--- Comment #8 from Yuri Gribov <tetra2005 at gmail dot com> ---
Created attachment 41737
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41737&action=edit
New draft patch

How about this? I added edge attribute for builtin_expect and later used it in
emit_case_decision_tree to emit expected comparison prior to decision tree for
other case values.

With this patch GCC optimizes original example. If it's not too ugly I'll do
proper testing and send to gcc-patches.
>From gcc-bugs-return-568503-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Jul 12 16:41:05 2017
Return-Path: <gcc-bugs-return-568503-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 28360 invoked by alias); 12 Jul 2017 16:41: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 26259 invoked by uid 48); 12 Jul 2017 16:41:01 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/81416] OpenMP craches if large arrays passed
Date: Wed, 12 Jul 2017 16:41: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: 5.4.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81416-4-WwStT1gUGj@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81416-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81416-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: 2017-07/txt/msg01054.txt.bz2
Content-length: 254

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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Try increasing your stack limit. I suspect it is too low. With -fopenmp turned
on causes arrays to be always stored on the stack .
>From gcc-bugs-return-568504-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Jul 12 16:51:17 2017
Return-Path: <gcc-bugs-return-568504-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 27876 invoked by alias); 12 Jul 2017 16:51:17 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 21930 invoked by uid 48); 12 Jul 2017 16:51:12 -0000
From: "egall at gwmail dot gwu.edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/81417] New: -Wsign-compare should print types being compared
Date: Wed, 12 Jul 2017 16:51: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.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egall at gwmail dot gwu.edu
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 cf_gccbuild
Message-ID: <bug-81417-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: 2017-07/txt/msg01055.txt.bz2
Content-length: 2607

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

            Bug ID: 81417
           Summary: -Wsign-compare should print types being compared
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: egall at gwmail dot gwu.edu
  Target Milestone: ---
              Host: i386-apple-darwin9.8.0
            Target: i386-apple-darwin9.8.0
             Build: i386-apple-darwin9.8.0

Simple testcase:

$ cat Wsign_compare.c
/* { dg-do compile } */

int foo(signed int a, unsigned int b)
{
        return (a < b);
}

When compiled with gcc, it says: 

$ /usr/local/bin/gcc -c -Wsign-compare Wsign_compare.c
Wsign_compare.c: In function ‘foo’:
Wsign_compare.c:5:12: warning: comparison between signed and unsigned integer
expressions [-Wsign-compare]
  return (a < b);
            ^

However, when compiled with clang, it gives more information:

$ /sw/opt/llvm-3.1/bin/clang -c -Wsign-compare Wsign_compare.c
Wsign_compare.c:5:12: warning: comparison of integers of different signs: 'int'
and 'unsigned int' [-Wsign-compare]
        return (a < b);
                ~ ^ ~
1 warning generated.

In such a small file like this it might not matter much, but in bigger files
where the variables being compared are very far away from their declarations,
it can be hard to remember what types they are. Having the compiler remind me
of the types being compared would be helpful when deciding how to silence
warnings like these.

Version info:

$ /usr/local/bin/gcc -v
Using built-in specs.
COLLECT_GCC=/usr/local/bin/gcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/i386-apple-darwin9.8.0/8.0.0/lto-wrapper
Target: i386-apple-darwin9.8.0
Configured with: ../configure --disable-werror --disable-werror-always
--enable-languages=c,c++,lto,objc,obj-c++ --enable-stage1-checking=release,rtl
-C --with-system-libunwind --enable-secureplt --enable-frame-pointer
--enable-debug --with-isl --disable-host-shared --enable-maintainer-mode
--disable-default-pie --with-ld64 --without-pic --enable-target-optspace
CC=/usr/local/bin/gcc CXX=/usr/local/bin/g++ AUTOCONF=/usr/local/bin/autoconf
AUTOHEADER=/usr/local/bin/autoheader AUTORECONF=/usr/local/bin/autoreconf
AUTOM4TE=/usr/local/bin/autom4te AUTOSCAN=/usr/local/bin/autoscan
AUTOUPDATE=/usr/local/bin/autoupdate IFNAMES=/usr/local/bin/ifnames
Thread model: posix
gcc version 8.0.0 20170702 (experimental) (GCC)
>From gcc-bugs-return-568505-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Jul 12 17:02:30 2017
Return-Path: <gcc-bugs-return-568505-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 57838 invoked by alias); 12 Jul 2017 17:02:30 -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 53512 invoked by uid 48); 12 Jul 2017 17:02:26 -0000
From: "asolokha at gmx dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81418] New: [8 Regression] ICE in vect_get_vec_def_for_stmt_copy
Date: Wed, 12 Jul 2017 17:02:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
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: asolokha at gmx 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 keywords bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-81418-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: 2017-07/txt/msg01056.txt.bz2
Content-length: 1154

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

            Bug ID: 81418
           Summary: [8 Regression] ICE in vect_get_vec_def_for_stmt_copy
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---

gcc-8.0.0-alpha20170709 ICEs when compiling the following snippet w/ -O1
-ftree-loop-vectorize:

int
ol (int ku)
{
  int zq = 0;

  while (ku < 1)
    {
      int y6;

      for (y6 = 0; y6 < 3; ++y6)
        zq += (char)ku;
      ++ku;
    }

  return zq;
}

% gcc-8.0.0-alpha20170709 -O1 -ftree-loop-vectorize -c -w mndyhqic.c
during GIMPLE pass: vect
mndyhqic.c: In function 'ol':
mndyhqic.c:2:1: internal compiler error: in vect_get_vec_def_for_stmt_copy, at
tree-vect-stmts.c:1522
 ol (int ku)
 ^~

(As a side note, when compiling this w/ -O2 or higher, -ftree-loop-vectorize
makes 8 branch generate something absolutely hilarious:
https://godbolt.org/g/R4YW3b).
>From gcc-bugs-return-568506-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Jul 12 17:17:21 2017
Return-Path: <gcc-bugs-return-568506-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 1681 invoked by alias); 12 Jul 2017 17:17: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 130359 invoked by uid 48); 12 Jul 2017 17:17:12 -0000
From: "egall at gwmail dot gwu.edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/49928] Only workaround for "-Wundef" is "defined(Macro) && Macro", but it is undefined behavior?
Date: Wed, 12 Jul 2017 17:17:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: preprocessor
X-Bugzilla-Version: 4.7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egall at gwmail dot gwu.edu
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-49928-4-1nrTuEBZt0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-49928-4@http.gcc.gnu.org/bugzilla/>
References: <bug-49928-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: 2017-07/txt/msg01057.txt.bz2
Content-length: 447

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

Eric Gallager <egall at gwmail dot gwu.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |egall at gwmail dot gwu.edu

--- Comment #2 from Eric Gallager <egall at gwmail dot gwu.edu> ---
-Wexpansion-to-defined now exists and should warn about this
>From gcc-bugs-return-568507-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Jul 12 17:24:33 2017
Return-Path: <gcc-bugs-return-568507-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 35880 invoked by alias); 12 Jul 2017 17:24: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 6718 invoked by uid 48); 12 Jul 2017 17:24:00 -0000
From: "egall at gwmail dot gwu.edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/81419] New: GCC wrongly suggests function-like macro as fixit hint for undefined object-like macro
Date: Wed, 12 Jul 2017 17:24:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: preprocessor
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egall at gwmail dot gwu.edu
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc target_milestone cf_gcchost cf_gcctarget cf_gccbuild
Message-ID: <bug-81419-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: 2017-07/txt/msg01058.txt.bz2
Content-length: 2821

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

            Bug ID: 81419
           Summary: GCC wrongly suggests function-like macro as fixit hint
                    for undefined object-like macro
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: preprocessor
          Assignee: unassigned at gcc dot gnu.org
          Reporter: egall at gwmail dot gwu.edu
                CC: dmalcolm at redhat dot com
  Target Milestone: ---
              Host: i386-apple-darwin9.8.0
            Target: i386-apple-darwin9.8.0
             Build: i386-apple-darwin9.8.0

Testcase: 

$ cat macro_fixit.c
#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))

int foo(unsigned int argument);

int bar(void)
{
        return foo(PTR_SIZE);
}

Compiling gives:

$ /usr/local/bin/gcc -c macro_fixit.c
macro_fixit.c: In function ‘bar’:
macro_fixit.c:7:13: error: ‘PTR_SIZE’ undeclared (first use in this function);
did you mean ‘ARRAY_SIZE’?
  return foo(PTR_SIZE);
             ^~~~~~~~
             ARRAY_SIZE
macro_fixit.c:7:13: note: each undeclared identifier is reported only once for
each function it appears in

However, making the replacement that the fixit hint suggests is invalid, and
still leads to another error:

$ /usr/local/bin/gcc -c macro_fixit.c
macro_fixit.c: In function ‘bar’:
macro_fixit.c:7:13: error: ‘ARRAY_SIZE’ undeclared (first use in this function)
  return foo(ARRAY_SIZE);
             ^~~~~~~~~~
macro_fixit.c:7:13: note: each undeclared identifier is reported only once for
each function it appears in

IMO gcc should only suggest replacements as fixit hints when they actually fix
the problem being pointed out.

Version info:

$ /usr/local/bin/gcc -v
Using built-in specs.
COLLECT_GCC=/usr/local/bin/gcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/i386-apple-darwin9.8.0/8.0.0/lto-wrapper
Target: i386-apple-darwin9.8.0
Configured with: ../configure --disable-werror --disable-werror-always
--enable-languages=c,c++,lto,objc,obj-c++ --enable-stage1-checking=release,rtl
-C --with-system-libunwind --enable-secureplt --enable-frame-pointer
--enable-debug --with-isl --disable-host-shared --enable-maintainer-mode
--disable-default-pie --with-ld64 --without-pic --enable-target-optspace
CC=/usr/local/bin/gcc CXX=/usr/local/bin/g++ AUTOCONF=/usr/local/bin/autoconf
AUTOHEADER=/usr/local/bin/autoheader AUTORECONF=/usr/local/bin/autoreconf
AUTOM4TE=/usr/local/bin/autom4te AUTOSCAN=/usr/local/bin/autoscan
AUTOUPDATE=/usr/local/bin/autoupdate IFNAMES=/usr/local/bin/ifnames
Thread model: posix
gcc version 8.0.0 20170702 (experimental) (GCC)
>From gcc-bugs-return-568508-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Jul 12 17:32:56 2017
Return-Path: <gcc-bugs-return-568508-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 38698 invoked by alias); 12 Jul 2017 17:32: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 32899 invoked by uid 48); 12 Jul 2017 17:32:51 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/81417] -Wsign-compare should print types being compared
Date: Wed, 12 Jul 2017 17:32:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mpolacek at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc assigned_to everconfirmed
Message-ID: <bug-81417-4-op344DnxmC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81417-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81417-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: 2017-07/txt/msg01059.txt.bz2
Content-length: 662

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2017-07-12
                 CC|                            |mpolacek at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |mpolacek at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
I'll look into this.
>From gcc-bugs-return-568509-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Jul 12 17:35:19 2017
Return-Path: <gcc-bugs-return-568509-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 32073 invoked by alias); 12 Jul 2017 17:35:18 -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 23172 invoked by uid 48); 12 Jul 2017 17:35:13 -0000
From: "wilco at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81303] [8 Regression] 410.bwaves regression caused by r249919
Date: Wed, 12 Jul 2017 17:35: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: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wilco 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.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-81303-4-ISu373r54R@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81303-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81303-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: 2017-07/txt/msg01060.txt.bz2
Content-length: 835

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

Wilco <wilco at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-07-12
                 CC|                            |wilco at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #3 from Wilco <wilco at gcc dot gnu.org> ---
Confirmed, on AArch64 bwaves is ~20% slower in SPEC2006 and ~30% slower in
SPEC2017. There are twice as many spills (outside the inner loop) and the
vectors are created in an inefficient way:

ldr     d4, [x5,x27]
ld1r    {v6.2d}, [x5]
mov     v6.d[1], v4.d[0]
add     x5, x5, x26
fmla    v1.2d, v20.2d, v6.2d
>From gcc-bugs-return-568510-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Jul 12 18:07:51 2017
Return-Path: <gcc-bugs-return-568510-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 120594 invoked by alias); 12 Jul 2017 18:07: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 118220 invoked by uid 48); 12 Jul 2017 18:07:47 -0000
From: "dcb314 at hotmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/81406] ice in check_die, at dwarf2out.c:6185
Date: Wed, 12 Jul 2017 18:07:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: lto
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dcb314 at hotmail 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-81406-4-z7jrUZsNM2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81406-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81406-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: 2017-07/txt/msg01061.txt.bz2
Content-length: 410

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

--- Comment #2 from David Binderman <dcb314 at hotmail dot com> ---
Created attachment 41738
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41738&action=edit
preprocessed C source code

Flags -O2 -g -pipe  -fexceptions -fstack-protector-strong
--param=ssp-buffer-size=4 -grecord-gcc-switches  -m64 -mtune=generic -flto 
-fPIC required.
>From gcc-bugs-return-568511-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Jul 12 19:11:20 2017
Return-Path: <gcc-bugs-return-568511-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 80887 invoked by alias); 12 Jul 2017 19:11: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 70717 invoked by uid 48); 12 Jul 2017 19:11:13 -0000
From: "ryan.brown at ableton dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81420] New: When a reference is bound to a member in the base of a temporary, lifetime of the temporary is not extended
Date: Wed, 12 Jul 2017 19:11: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.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ryan.brown at ableton 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-81420-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: 2017-07/txt/msg01062.txt.bz2
Content-length: 1001

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

            Bug ID: 81420
           Summary: When a reference is bound to a member in the base of a
                    temporary, lifetime of the temporary is not extended
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ryan.brown at ableton dot com
  Target Milestone: ---

This is a followup to bug #54293. The incorrect behavior can be seen by
modifying the test introduced for that bug [0] to use a base class:

int d;

struct A
{
  int i;
  ~A() { ++d; };
};

struct B : A {};

int main()
{
  {
    const int &r = B().i;
    if (d != 0)
      return 1;
  }
  if (d != 1)
    return 1;
}

This test passes for clang HEAD and fails for GCC HEAD.

[0]
https://gcc.gnu.org/viewcvs/gcc/trunk/gcc/testsuite/g%2B%2B.dg/init/ref19.C?view=markup&pathrev=240819
>From gcc-bugs-return-568512-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Jul 12 19:59:48 2017
Return-Path: <gcc-bugs-return-568512-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 14809 invoked by alias); 12 Jul 2017 19:59: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 7892 invoked by uid 48); 12 Jul 2017 19:59:43 -0000
From: "snaipe at arista dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/81135] Extra debug info generated for unused extern declarations
Date: Wed, 12 Jul 2017 19:59:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: debug
X-Bugzilla-Version: 6.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: snaipe at arista 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: cc
Message-ID: <bug-81135-4-Pc7ShK8bI5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81135-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81135-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: 2017-07/txt/msg01063.txt.bz2
Content-length: 490

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

Franklin "Snaipe" Mathieu <snaipe at arista dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |snaipe at arista dot com

--- Comment #2 from Franklin "Snaipe" Mathieu <snaipe at arista dot com> ---
A patch for this has been sent:
https://gcc.gnu.org/ml/gcc-patches/2017-07/msg00602.html
>From gcc-bugs-return-568513-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Jul 12 20:38:55 2017
Return-Path: <gcc-bugs-return-568513-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 6444 invoked by alias); 12 Jul 2017 20:38: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 6184 invoked by uid 48); 12 Jul 2017 20:38:49 -0000
From: "mfe at live dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug go/81421] New: Circular runtime.s-gox -> runtime.lo dependency dropped -> objcopy: 'runtime.s-gox.tmp': No such file
Date: Wed, 12 Jul 2017 20:38:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: go
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mfe at live dot de
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ian at airs dot com
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-81421-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: 2017-07/txt/msg01064.txt.bz2
Content-length: 11402

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

            Bug ID: 81421
           Summary: Circular runtime.s-gox -> runtime.lo dependency
                    dropped -> objcopy: 'runtime.s-gox.tmp': No such file
           Product: gcc
           Version: 7.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: go
          Assignee: ian at airs dot com
          Reporter: mfe at live dot de
                CC: cmang at google dot com
  Target Milestone: ---

the exact version of GCC:
gcc-7.1.0

the system type:
NetgearReadyNAS Duo (http://netgear.nas-central.org/wiki/Category:ReadyNasDUO)

the options given when GCC was configured/built:
configure CC=/opt/gcc-4.6/bin/gcc CXX=/opt/gcc-4.6/bin/g++
--enable-languages=c,c++,go --prefix=/opt/gcc-7.1  --with-cpu=v7
--with-mpc=/usr/local  --with-mpfr=/usr/local --with-gmp=/usr/local
--with-isl=/usr/local/ --disable-libstdcxx-pch 

the complete command line that triggers the bug;
/usr/local/bin/make

the compiler output (error messages, warnings, etc.);
[...]
/bin/mkdir -p container; dir=`echo container/heap.lo.dep | sed -e
's/.lo.dep$//'`; files=`/bin/sh ../../../gcc-7.1.0/libgo/match.sh
--goarch=sparc --goos=linux --srcdir=../../../gcc-7.1.0/libgo/go/$dir
--extrafiles="" `; /bin/sh ../../../gcc-7.1.0/libgo/godeps.sh `echo
container/heap.lo.dep | sed -e 's/.dep$//'` $files > container/heap.lo.dep.tmp;
if ! cmp container/heap.lo.dep.tmp container/heap.lo.dep >/dev/null
2>/dev/null; then rm -f `echo container/heap.lo.dep | sed -e 's/\.dep$//'`; fi;
mv -f container/heap.lo.dep.tmp container/heap.lo.dep
/bin/mkdir -p compress; dir=`echo compress/zlib.lo.dep | sed -e
's/.lo.dep$//'`; files=`/bin/sh ../../../gcc-7.1.0/libgo/match.sh
--goarch=sparc --goos=linux --srcdir=../../../gcc-7.1.0/libgo/go/$dir
--extrafiles="" `; /bin/sh ../../../gcc-7.1.0/libgo/godeps.sh `echo
compress/zlib.lo.dep | sed -e 's/.dep$//'` $files > compress/zlib.lo.dep.tmp;
if ! cmp compress/zlib.lo.dep.tmp compress/zlib.lo.dep >/dev/null 2>/dev/null;
then rm -f `echo compress/zlib.lo.dep | sed -e 's/\.dep$//'`; fi; mv -f
compress/zlib.lo.dep.tmp compress/zlib.lo.dep
/bin/mkdir -p compress; dir=`echo compress/lzw.lo.dep | sed -e 's/.lo.dep$//'`;
files=`/bin/sh ../../../gcc-7.1.0/libgo/match.sh --goarch=sparc --goos=linux
--srcdir=../../../gcc-7.1.0/libgo/go/$dir --extrafiles="" `; /bin/sh
../../../gcc-7.1.0/libgo/godeps.sh `echo compress/lzw.lo.dep | sed -e
's/.dep$//'` $files > compress/lzw.lo.dep.tmp; if ! cmp compress/lzw.lo.dep.tmp
compress/lzw.lo.dep >/dev/null 2>/dev/null; then rm -f `echo
compress/lzw.lo.dep | sed -e 's/\.dep$//'`; fi; mv -f compress/lzw.lo.dep.tmp
compress/lzw.lo.dep
/bin/mkdir -p compress; dir=`echo compress/gzip.lo.dep | sed -e
's/.lo.dep$//'`; files=`/bin/sh ../../../gcc-7.1.0/libgo/match.sh
--goarch=sparc --goos=linux --srcdir=../../../gcc-7.1.0/libgo/go/$dir
--extrafiles="" `; /bin/sh ../../../gcc-7.1.0/libgo/godeps.sh `echo
compress/gzip.lo.dep | sed -e 's/.dep$//'` $files > compress/gzip.lo.dep.tmp;
if ! cmp compress/gzip.lo.dep.tmp compress/gzip.lo.dep >/dev/null 2>/dev/null;
then rm -f `echo compress/gzip.lo.dep | sed -e 's/\.dep$//'`; fi; mv -f
compress/gzip.lo.dep.tmp compress/gzip.lo.dep
/bin/mkdir -p compress; dir=`echo compress/flate.lo.dep | sed -e
's/.lo.dep$//'`; files=`/bin/sh ../../../gcc-7.1.0/libgo/match.sh
--goarch=sparc --goos=linux --srcdir=../../../gcc-7.1.0/libgo/go/$dir
--extrafiles="" `; /bin/sh ../../../gcc-7.1.0/libgo/godeps.sh `echo
compress/flate.lo.dep | sed -e 's/.dep$//'` $files > compress/flate.lo.dep.tmp;
if ! cmp compress/flate.lo.dep.tmp compress/flate.lo.dep >/dev/null
2>/dev/null; then rm -f `echo compress/flate.lo.dep | sed -e 's/\.dep$//'`; fi;
mv -f compress/flate.lo.dep.tmp compress/flate.lo.dep
/bin/mkdir -p compress; dir=`echo compress/bzip2.lo.dep | sed -e
's/.lo.dep$//'`; files=`/bin/sh ../../../gcc-7.1.0/libgo/match.sh
--goarch=sparc --goos=linux --srcdir=../../../gcc-7.1.0/libgo/go/$dir
--extrafiles="" `; /bin/sh ../../../gcc-7.1.0/libgo/godeps.sh `echo
compress/bzip2.lo.dep | sed -e 's/.dep$//'` $files > compress/bzip2.lo.dep.tmp;
if ! cmp compress/bzip2.lo.dep.tmp compress/bzip2.lo.dep >/dev/null
2>/dev/null; then rm -f `echo compress/bzip2.lo.dep | sed -e 's/\.dep$//'`; fi;
mv -f compress/bzip2.lo.dep.tmp compress/bzip2.lo.dep
/bin/mkdir -p cmd/internal; dir=`echo cmd/internal/browser.lo.dep | sed -e
's/.lo.dep$//'`; files=`/bin/sh ../../../gcc-7.1.0/libgo/match.sh
--goarch=sparc --goos=linux --srcdir=../../../gcc-7.1.0/libgo/go/$dir
--extrafiles="" `; /bin/sh ../../../gcc-7.1.0/libgo/godeps.sh `echo
cmd/internal/browser.lo.dep | sed -e 's/.dep$//'` $files >
cmd/internal/browser.lo.dep.tmp; if ! cmp cmd/internal/browser.lo.dep.tmp
cmd/internal/browser.lo.dep >/dev/null 2>/dev/null; then rm -f `echo
cmd/internal/browser.lo.dep | sed -e 's/\.dep$//'`; fi; mv -f
cmd/internal/browser.lo.dep.tmp cmd/internal/browser.lo.dep
/bin/mkdir -p .; dir=`echo bytes.lo.dep | sed -e 's/.lo.dep$//'`;
files=`/bin/sh ../../../gcc-7.1.0/libgo/match.sh --goarch=sparc --goos=linux
--srcdir=../../../gcc-7.1.0/libgo/go/$dir --extrafiles="" `; /bin/sh
../../../gcc-7.1.0/libgo/godeps.sh `echo bytes.lo.dep | sed -e 's/.dep$//'`
$files > bytes.lo.dep.tmp; if ! cmp bytes.lo.dep.tmp bytes.lo.dep >/dev/null
2>/dev/null; then rm -f `echo bytes.lo.dep | sed -e 's/\.dep$//'`; fi; mv -f
bytes.lo.dep.tmp bytes.lo.dep
/bin/mkdir -p .; dir=`echo bufio.lo.dep | sed -e 's/.lo.dep$//'`;
files=`/bin/sh ../../../gcc-7.1.0/libgo/match.sh --goarch=sparc --goos=linux
--srcdir=../../../gcc-7.1.0/libgo/go/$dir --extrafiles="" `; /bin/sh
../../../gcc-7.1.0/libgo/godeps.sh `echo bufio.lo.dep | sed -e 's/.dep$//'`
$files > bufio.lo.dep.tmp; if ! cmp bufio.lo.dep.tmp bufio.lo.dep >/dev/null
2>/dev/null; then rm -f `echo bufio.lo.dep | sed -e 's/\.dep$//'`; fi; mv -f
bufio.lo.dep.tmp bufio.lo.dep
/bin/mkdir -p archive; dir=`echo archive/zip.lo.dep | sed -e 's/.lo.dep$//'`;
files=`/bin/sh ../../../gcc-7.1.0/libgo/match.sh --goarch=sparc --goos=linux
--srcdir=../../../gcc-7.1.0/libgo/go/$dir --extrafiles="" `; /bin/sh
../../../gcc-7.1.0/libgo/godeps.sh `echo archive/zip.lo.dep | sed -e
's/.dep$//'` $files > archive/zip.lo.dep.tmp; if ! cmp archive/zip.lo.dep.tmp
archive/zip.lo.dep >/dev/null 2>/dev/null; then rm -f `echo archive/zip.lo.dep
| sed -e 's/\.dep$//'`; fi; mv -f archive/zip.lo.dep.tmp archive/zip.lo.dep
/bin/mkdir -p archive; dir=`echo archive/tar.lo.dep | sed -e 's/.lo.dep$//'`;
files=`/bin/sh ../../../gcc-7.1.0/libgo/match.sh --goarch=sparc --goos=linux
--srcdir=../../../gcc-7.1.0/libgo/go/$dir --extrafiles="" `; /bin/sh
../../../gcc-7.1.0/libgo/godeps.sh `echo archive/tar.lo.dep | sed -e
's/.dep$//'` $files > archive/tar.lo.dep.tmp; if ! cmp archive/tar.lo.dep.tmp
archive/tar.lo.dep >/dev/null 2>/dev/null; then rm -f `echo archive/tar.lo.dep
| sed -e 's/\.dep$//'`; fi; mv -f archive/tar.lo.dep.tmp archive/tar.lo.dep
/usr/local/bin/make "AR_FLAGS=rc" "CC_FOR_BUILD=/opt/gcc-4.6/bin/gcc"
"CC_FOR_TARGET=/media/gcc-7.1-compiled/./gcc/xgcc
-B/media/gcc-7.1-compiled/./gcc/" "CFLAGS=-g -O2" "CXXFLAGS=-g -O2
-D_GNU_SOURCE" "CFLAGS_FOR_BUILD=-g -O2" "CFLAGS_FOR_TARGET=-g -O2"
"GOC_FOR_TARGET=/media/gcc-7.1-compiled/./gcc/gccgo
-B/media/gcc-7.1-compiled/./gcc/" "GOC=/media/gcc-7.1-compiled/./gcc/gccgo
-B/media/gcc-7.1-compiled/./gcc/ -B/opt/gcc-7.1/sparc-unknown-linux-gnu/bin/
-B/opt/gcc-7.1/sparc-unknown-linux-gnu/lib/ -isystem
/opt/gcc-7.1/sparc-unknown-linux-gnu/include -isystem
/opt/gcc-7.1/sparc-unknown-linux-gnu/sys-include   " "GOCFLAGS=-O2 -g"
"INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644"
"INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install -c"
"LDFLAGS=" "LIBCFLAGS=-g -O2" "LIBCFLAGS_FOR_TARGET=-g -O2"
"MAKE=/usr/local/bin/make" "MAKEINFO=makeinfo --split-size=5000000
--split-size=5000000 " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh"
"RUNTESTFLAGS=" "exec_prefix=/opt/gcc-7.1" "infodir=/opt/gcc-7.1/share/info"
"libdir=/opt/gcc-7.1/lib" "includedir=/opt/gcc-7.1/include"
"prefix=/opt/gcc-7.1" "tooldir=/opt/gcc-7.1/sparc-unknown-linux-gnu"
"gxx_include_dir=" "AR=ar" "AS=/media/gcc-7.1-compiled/./gcc/as"
"LD=/media/gcc-7.1-compiled/./gcc/collect-ld" "RANLIB=ranlib"
"NM=/media/gcc-7.1-compiled/./gcc/nm" "NM_FOR_BUILD=" "NM_FOR_TARGET=nm"
"DESTDIR=" "WERROR=-Werror" all-recursive
make[3]: Entering directory
'/c/media/gcc-7.1-compiled/sparc-unknown-linux-gnu/libgo'
make[4]: Entering directory
'/c/media/gcc-7.1-compiled/sparc-unknown-linux-gnu/libgo'
/bin/mkdir -p .; files=`echo ../../../gcc-7.1.0/libgo/go/errors/errors.go | sed
-e 's/[^ ]*\.gox//g' -e 's/[^ ]*\.dep//'`; /bin/sh ./libtool --tag GO
--mode=compile /media/gcc-7.1-compiled/./gcc/gccgo
-B/media/gcc-7.1-compiled/./gcc/ -B/opt/gcc-7.1/sparc-unknown-linux-gnu/bin/
-B/opt/gcc-7.1/sparc-unknown-linux-gnu/lib/ -isystem
/opt/gcc-7.1/sparc-unknown-linux-gnu/include -isystem
/opt/gcc-7.1/sparc-unknown-linux-gnu/sys-include       -O2 -g -I . -c
-fgo-pkgpath=`echo errors.lo | sed -e 's/.lo$//'`  -o errors.lo $files
libtool: compile:  /media/gcc-7.1-compiled/./gcc/gccgo
-B/media/gcc-7.1-compiled/./gcc/ -B/opt/gcc-7.1/sparc-unknown-linux-gnu/bin/
-B/opt/gcc-7.1/sparc-unknown-linux-gnu/lib/ -isystem
/opt/gcc-7.1/sparc-unknown-linux-gnu/include -isystem
/opt/gcc-7.1/sparc-unknown-linux-gnu/sys-include -O2 -g -I . -c
-fgo-pkgpath=errors ../../../gcc-7.1.0/libgo/go/errors/errors.go  -fPIC -o
.libs/errors.o
libtool: compile:  /media/gcc-7.1-compiled/./gcc/gccgo
-B/media/gcc-7.1-compiled/./gcc/ -B/opt/gcc-7.1/sparc-unknown-linux-gnu/bin/
-B/opt/gcc-7.1/sparc-unknown-linux-gnu/lib/ -isystem
/opt/gcc-7.1/sparc-unknown-linux-gnu/include -isystem
/opt/gcc-7.1/sparc-unknown-linux-gnu/sys-include -O2 -g -I . -c
-fgo-pkgpath=errors ../../../gcc-7.1.0/libgo/go/errors/errors.go -o errors.o
>/dev/null 2>&1
f=`echo errors.lo | sed -e 's/.lo$/.o/'`; objcopy -j .go_export $f
errors.s-gox.tmp; /bin/sh ../../../gcc-7.1.0/libgo/mvifdiff.sh errors.s-gox.tmp
`echo errors.s-gox | sed -e 's/s-gox/gox/'`
echo timestamp > errors.s-gox
make[4]: Circular runtime.s-gox <- runtime.lo dependency dropped.
f=`echo  | sed -e 's/.lo$/.o/'`; objcopy -j .go_export $f runtime.s-gox.tmp;
/bin/sh ../../../gcc-7.1.0/libgo/mvifdiff.sh runtime.s-gox.tmp `echo
runtime.s-gox | sed -e 's/s-gox/gox/'`
objcopy: 'runtime.s-gox.tmp': No such file
mv: cannot stat `runtime.s-gox.tmp': No such file or directory
make[4]: *** [Makefile:3331: runtime.s-gox] Error 1
make[4]: Leaving directory
'/c/media/gcc-7.1-compiled/sparc-unknown-linux-gnu/libgo'
make[3]: *** [Makefile:2746: all-recursive] Error 1
make[3]: Leaving directory
'/c/media/gcc-7.1-compiled/sparc-unknown-linux-gnu/libgo'
make[2]: *** [Makefile:1344: all] Error 2
make[2]: Leaving directory
'/c/media/gcc-7.1-compiled/sparc-unknown-linux-gnu/libgo'
make[1]: *** [Makefile:20030: all-target-libgo] Error 2
make[1]: Leaving directory '/c/media/gcc-7.1-compiled'
make: *** [Makefile:934: all] Error 2
nas-02-90-38:/media/gcc-7.1-compiled#

If you need further information - let me know.
>From gcc-bugs-return-568514-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Jul 12 20:53:28 2017
Return-Path: <gcc-bugs-return-568514-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 37970 invoked by alias); 12 Jul 2017 20:53:27 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 37888 invoked by uid 48); 12 Jul 2017 20:53:24 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/81413] overloaded new and delete might not be called when dynamically linked with libstdc++
Date: Wed, 12 Jul 2017 20:53:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi 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-81413-4-iSAPBa5hRU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81413-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81413-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: 2017-07/txt/msg01065.txt.bz2
Content-length: 272

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

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The linker model on Windows is weird, there are already existing bugs about
this (at least PR 77726 but others too).

It works fine on other platforms.
>From gcc-bugs-return-568515-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Jul 12 21:44:47 2017
Return-Path: <gcc-bugs-return-568515-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 118937 invoked by alias); 12 Jul 2017 21:44:47 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 117625 invoked by uid 48); 12 Jul 2017 21:44:31 -0000
From: "jhaberku at scylladb dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/70570] Assembler error "symbol already defined" from nested lambdas and function-static variable
Date: Wed, 12 Jul 2017 21:44:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.3.0
X-Bugzilla-Keywords: assemble-failure, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jhaberku at scylladb 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: cc
Message-ID: <bug-70570-4-QfsRQulLFn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70570-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70570-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: 2017-07/txt/msg01066.txt.bz2
Content-length: 5482

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

Jesse Haber-Kucharsky <jhaberku at scylladb dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jhaberku at scylladb dot com

--- Comment #2 from Jesse Haber-Kucharsky <jhaberku at scylladb dot com> ---
I believe this bug manifested itself in Seastar
(https://github.com/scylladb/seastar/commit/3d21ef5959bedb3ea15032d1632b0b2d7012044a).

The original snippet from Nick causes the error on Fedora 23:

Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/5.3.1/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap
--enable-languages=c,c++,objc,obj-c++,fortran,ada,go,lto --prefix=/usr
--mandir=/usr/share/man --infodir=/usr/share/info
--with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared
--enable-threads=posix --enable-checking=release --enable-multilib
--with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions
--enable-gnu-unique-object --enable-linker-build-id
--with-linker-hash-style=gnu --enable-plugin --enable-initfini-array
--disable-libgcj --with-isl --enable-libmpx --enable-gnu-indirect-function
--with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 5.3.1 20160406 (Red Hat 5.3.1-6) (GCC)

and on Ubuntu 16.04:

Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
5.4.0-6ubuntu1~16.04.4' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs
--enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-5 --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=new --enable-gnu-unique-object
--disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib
--disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home
--with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64
--with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64
--with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar
--enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686
--with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib
--with-tune=generic --enable-checking=release --build=x86_64-linux-gnu
--host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4)

On both platforms, the error is the same:

g++ -std=c++14 test.cc -o test
/tmp/ccTNkOnu.s: Assembler messages:
/tmp/ccTNkOnu.s:34: Error: symbol `_ZL1x' is already defined


On gcc 7.1.1, the error is not present:

Using built-in specs.
COLLECT_GCC=/usr/bin/g++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/7/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap
--enable-languages=c,c++,objc,obj-c++,fortran,ada,go,lto --prefix=/usr
--mandir=/usr/share/man --infodir=/usr/share/info
--with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared
--enable-threads=posix --enable-checking=release --enable-multilib
--with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions
--enable-gnu-unique-object --enable-linker-build-id
--with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin
--enable-initfini-array --with-isl --enable-libmpx
--enable-offload-targets=nvptx-none --without-cuda-driver
--enable-gnu-indirect-function --with-tune=generic --with-arch_32=i686
--build=x86_64-redhat-linux
Thread model: posix
gcc version 7.1.1 20170622 (Red Hat 7.1.1-3) (GCC)

To reproduce the exact compilation error with Seastar:

docker pull fedora:23
docker run -it --rm fedora:23 bash
dnf install -y git
cd opt && git clone https://github.com/scylladb/seastar
git checkout a2be7a4f312a62c67c79cf818970d0c954f5fc15
git submodule update --init
./install-dependencies.sh
./configure.py --mode=debug
ninja-build build/debug/tests/lowres_clock_test.o

The error:

g++ -MD -MT build/debug/tests/lowres_clock_test.o -MF
build/debug/tests/lowres_clock_test.o.d -fsanitize=address -fsanitize=leak
-fsanitize=undefined -fno-sanitize=vptr -DASAN_ENABLED -O0 -DDEBUG
-DDEBUG_SHARED_PTR -DDEFAULT_ALLOCATOR -DSEASTAR_THREAD_STACK_GUARDS
-I/opt/seastar/build/debug/gen -I/opt/seastar/build/debug/c-ares -std=gnu++1y
-g  -Wall -Werror -Wno-error=deprecated-declarations -fvisibility=hidden 
-pthread -I/opt/seastar -U_FORTIFY_SOURCE  -I/opt/seastar/fmt
-DBOOST_TEST_DYN_LINK -Wno-overloaded-virtual -Wno-maybe-uninitialized
-DFMT_HEADER_ONLY -DHAVE_HWLOC -DHAVE_NUMA -DHAVE_LZ4_COMPRESS_DEFAULT -c -o
build/debug/tests/lowres_clock_test.o tests/lowres_clock_test.cc
/tmp/cch6C9Km.s: Assembler messages:
/tmp/cch6C9Km.s:19986: Error: symbol `_ZL14sleep_duration' is already defined


I've attached the lowres_clock_test.ii file.
>From gcc-bugs-return-568516-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Jul 12 21:48:52 2017
Return-Path: <gcc-bugs-return-568516-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 126864 invoked by alias); 12 Jul 2017 21:48:52 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 126552 invoked by uid 48); 12 Jul 2017 21:48:47 -0000
From: "ibuclaw at gdcproject dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/81422] New: [aarch64] internal compiler error: in update_equiv_regs, at ira.c:3425
Date: Wed, 12 Jul 2017 21:48:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ibuclaw at gdcproject 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-81422-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: 2017-07/txt/msg01067.txt.bz2
Content-length: 2361

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

            Bug ID: 81422
           Summary: [aarch64] internal compiler error: in
                    update_equiv_regs, at ira.c:3425
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ibuclaw at gdcproject dot org
  Target Milestone: ---

Reduced test:
---
struct DArray
{
    __SIZE_TYPE__ length;
    int* ptr;
};

void foo35(DArray)
{
    static __thread int x[5];
    foo35({5, (int*)&x});
}
---

during RTL pass: ira
test.cc: In function ‘void foo35(DArray)’:
test.cc:11:1: internal compiler error: in update_equiv_regs, at ira.c:3425
0xbe1223 update_equiv_regs
        /build/aarch64-linux-gnu/build/gcc/ira.c:3425
0xbe6bf0 ira
        /build/aarch64-linux-gnu/build/gcc/ira.c:5226
0xbe6bf0 execute
        /build/aarch64-linux-gnu/build/gcc/ira.c:5581
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.


---

Reading specs from /build/aarch64-linux-gnu/build/build/gcc/specs
COLLECT_GCC=/build/aarch64-linux-gnu/build/build/gcc/xg++
COLLECT_LTO_WRAPPER=/build/aarch64-linux-gnu/build/build/gcc/lto-wrapper
Target: aarch64-linux-gnu
Configured with: /build/aarch64-linux-gnu/build/configure --prefix=/usr
--libdir=/usr/lib --libexecdir=/usr/lib --with-sysroot=/
--enable-languages=c++,lto --enable-checking --enable-link-mutex
--disable-bootstrap --disable-werror --disable-libgomp --disable-libmudflap
--disable-libquadmath --disable-libitm --disable-libsanitizer
--disable-multilib --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu
--target=aarch64-linux-gnu
--with-native-system-header-dir=/usr/aarch64-linux-gnu/include
Thread model: posix
gcc version 8.0.0 20170625 (experimental) (GCC)

---

I have checked an arm64 cross compiler for gcc 5.4.0, and can reproduce the
same ICE (https://godbolt.org/g/YRXfyY), it could go back even further.

Also tested on against other targets - alpha, arm, hppa, mips, m68k, ppc,
ppcspe, sparc, sh, s390 - can not reproduce the ICE on any of them.  It only
seems to be arm64 that's affected.
>From gcc-bugs-return-568517-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Jul 12 21:49:32 2017
Return-Path: <gcc-bugs-return-568517-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 127957 invoked by alias); 12 Jul 2017 21:49:32 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 127865 invoked by uid 48); 12 Jul 2017 21:49:26 -0000
From: "jhaberku at scylladb dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/70570] Assembler error "symbol already defined" from nested lambdas and function-static variable
Date: Wed, 12 Jul 2017 21: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: 5.3.0
X-Bugzilla-Keywords: assemble-failure, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jhaberku at scylladb 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-70570-4-NzXtVKJhzM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70570-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70570-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: 2017-07/txt/msg01068.txt.bz2
Content-length: 240

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

--- Comment #3 from Jesse Haber-Kucharsky <jhaberku at scylladb dot com> ---
The .ii file is too large to attach. I hope the previous information I supplied
is sufficient and helpful.
>From gcc-bugs-return-568518-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Jul 12 22:38:32 2017
Return-Path: <gcc-bugs-return-568518-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 45041 invoked by alias); 12 Jul 2017 22:38:32 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 44743 invoked by uid 48); 12 Jul 2017 22:38:24 -0000
From: "ian at airs dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug go/81421] Circular runtime.s-gox -> runtime.lo dependency dropped -> objcopy: 'runtime.s-gox.tmp': No such file
Date: Wed, 12 Jul 2017 22:38:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: go
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ian at airs dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ian at airs dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81421-4-uDOLddgCet@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81421-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81421-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: 2017-07/txt/msg01069.txt.bz2
Content-length: 286

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

--- Comment #1 from Ian Lance Taylor <ian at airs dot com> ---
I can't recreate this and nobody else has reported it.  runtime.lo should not
depend on runtime.s-gox.

What are the contents of BUILDDIR/TARGET/libgo/runtime.lo.dep?
>From gcc-bugs-return-568519-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Jul 12 23:08:42 2017
Return-Path: <gcc-bugs-return-568519-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 105573 invoked by alias); 12 Jul 2017 23:08: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 102757 invoked by uid 55); 12 Jul 2017 23:08:27 -0000
From: "meissner at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81193] PowerPC GCC __builtin_cpu_is and __builtin_cpu_supports should warn about old libraries
Date: Wed, 12 Jul 2017 23:08:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: meissner at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: meissner at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81193-4-7IrSuk3wHJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81193-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81193-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: 2017-07/txt/msg01070.txt.bz2
Content-length: 4840

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

--- Comment #13 from Michael Meissner <meissner at gcc dot gnu.org> ---
Author: meissner
Date: Wed Jul 12 23:07:50 2017
New Revision: 250165

URL: https://gcc.gnu.org/viewcvs?rev=250165&root=gcc&view=rev
Log:
[gcc]
2017-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>

        PR target/81193
        * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): If GLIBC
        provides the hardware capability bits, define the macro
        __BUILTIN_CPU_SUPPORTS__.
        * config/rs6000/rs6000.c (cpu_expand_builtin): Generate a warning
        if GLIBC does not provide the hardware capability bits.  Add a
        gcc_unreachable call if the built-in cpu function is neither
        __builtin_cpu_is nor __builtin_cpu_supports.
        (rs6000_get_function_versions_dispatcher): Change the warning
        that an old GLIBC is used which does not export the capability
        bits to be an error.
        * doc/extend.texi (target_clones attribute): Document the
        restriction that GLIBC 2.23 or newer is needed on the PowerPC.
        (PowerPC built-in functions): Document that GLIBC 2.23 or newer is
        needed by __builtin_cpu_is and __builtin_cpu_supports.  Document
        the macros defined by GCC if the newer GLIBC is available.

[gcc/testsuite]
2017-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>

        PR target/81193
        * gcc.target/powerpc/bmi-andn-1.c: Add guard against using
        __builtin_cpu_supports with old GLIBC's.
        * gcc.target/powerpc/bmi-andn-2.c: Likewise.
        * gcc.target/powerpc/bmi-bextr-1.c: Likewise.
        * gcc.target/powerpc/bmi-bextr-2.c: Likewise.
        * gcc.target/powerpc/bmi-bextr-4.c: Likewise.
        * gcc.target/powerpc/bmi-bextr-5.c: Likewise.
        * gcc.target/powerpc/bmi-blsi-1.c: Likewise.
        * gcc.target/powerpc/bmi-blsi-2.c: Likewise.
        * gcc.target/powerpc/bmi-blsmsk-1.c: Likewise.
        * gcc.target/powerpc/bmi-blsmsk-2.c: Likewise.
        * gcc.target/powerpc/bmi-blsr-1.c: Likewise.
        * gcc.target/powerpc/bmi-blsr-2.c: Likewise.
        * gcc.target/powerpc/bmi-tzcnt-1.c: Likewise.
        * gcc.target/powerpc/bmi-tzcnt-2.c: Likewise.
        * gcc.target/powerpc/bmi2-bzhi32-1.c: Likewise.
        * gcc.target/powerpc/bmi2-bzhi64-1.c: Likewise.
        * gcc.target/powerpc/bmi2-mulx32-1.c: Likewise.
        * gcc.target/powerpc/bmi2-mulx32-2.c: Likewise.
        * gcc.target/powerpc/bmi2-mulx64-1.c: Likewise.
        * gcc.target/powerpc/bmi2-mulx64-2.c: Likewise.
        * gcc.target/powerpc/bmi2-pdep32-1.c: Likewise.
        * gcc.target/powerpc/bmi2-pdep64-1.c: Likewise.
        * gcc.target/powerpc/bmi2-pext32-1.c: Likewise.
        * gcc.target/powerpc/bmi2-pext64-1.c: Likewise.
        * gcc.target/powerpc/cpu-builtin-1.c: Likewise.

[libgcc]
2017-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>

        PR target/81193
        * configure.ac (PowerPC float128 hardware support): Test whether
        we can use __builtin_cpu_supports before enabling the ifunc
        handler.
        * configure: Regenerate.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/rs6000/rs6000-c.c
    trunk/gcc/config/rs6000/rs6000.c
    trunk/gcc/doc/extend.texi
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.target/powerpc/bmi-andn-1.c
    trunk/gcc/testsuite/gcc.target/powerpc/bmi-andn-2.c
    trunk/gcc/testsuite/gcc.target/powerpc/bmi-bextr-1.c
    trunk/gcc/testsuite/gcc.target/powerpc/bmi-bextr-2.c
    trunk/gcc/testsuite/gcc.target/powerpc/bmi-bextr-4.c
    trunk/gcc/testsuite/gcc.target/powerpc/bmi-bextr-5.c
    trunk/gcc/testsuite/gcc.target/powerpc/bmi-blsi-1.c
    trunk/gcc/testsuite/gcc.target/powerpc/bmi-blsi-2.c
    trunk/gcc/testsuite/gcc.target/powerpc/bmi-blsmsk-1.c
    trunk/gcc/testsuite/gcc.target/powerpc/bmi-blsmsk-2.c
    trunk/gcc/testsuite/gcc.target/powerpc/bmi-blsr-1.c
    trunk/gcc/testsuite/gcc.target/powerpc/bmi-blsr-2.c
    trunk/gcc/testsuite/gcc.target/powerpc/bmi-tzcnt-1.c
    trunk/gcc/testsuite/gcc.target/powerpc/bmi-tzcnt-2.c
    trunk/gcc/testsuite/gcc.target/powerpc/bmi2-bzhi32-1.c
    trunk/gcc/testsuite/gcc.target/powerpc/bmi2-bzhi64-1.c
    trunk/gcc/testsuite/gcc.target/powerpc/bmi2-mulx32-1.c
    trunk/gcc/testsuite/gcc.target/powerpc/bmi2-mulx32-2.c
    trunk/gcc/testsuite/gcc.target/powerpc/bmi2-mulx64-1.c
    trunk/gcc/testsuite/gcc.target/powerpc/bmi2-mulx64-2.c
    trunk/gcc/testsuite/gcc.target/powerpc/bmi2-pdep32-1.c
    trunk/gcc/testsuite/gcc.target/powerpc/bmi2-pdep64-1.c
    trunk/gcc/testsuite/gcc.target/powerpc/bmi2-pext32-1.c
    trunk/gcc/testsuite/gcc.target/powerpc/bmi2-pext64-1.c
    trunk/gcc/testsuite/gcc.target/powerpc/cpu-builtin-1.c
    trunk/libgcc/ChangeLog
    trunk/libgcc/configure
    trunk/libgcc/configure.ac
>From gcc-bugs-return-568520-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jul 13 00:12:54 2017
Return-Path: <gcc-bugs-return-568520-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 48773 invoked by alias); 13 Jul 2017 00:12: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 45862 invoked by uid 48); 13 Jul 2017 00:12:48 -0000
From: "babokin at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81423] New: Wrong code at -O2
Date: Thu, 13 Jul 2017 00:12:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: babokin 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-81423-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: 2017-07/txt/msg01071.txt.bz2
Content-length: 1189

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

            Bug ID: 81423
           Summary: Wrong code at -O2
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: babokin at gmail dot com
  Target Milestone: ---

gcc trunk, rev250140, x86_64.

Test case has no undefined behavior, but -O2 produces incorrect result.

> cat f.cpp
#include <iostream>

unsigned long long int ll = 0;
unsigned long long int ull1 = 1ULL;
unsigned long long int ull2 = 12008284144813806346ULL;
unsigned long long int ull3;

void foo() {
  ll = -5597998501375493990LL;

  ll = unsigned(5677365550390624949L - ll) - (ull1 > 0);
  ull3 = unsigned(2067854353L << (((ll + -2129105131L) ^
10280750144413668236ULL) - 10280750143997242009ULL)) >>
((2873442921854271231ULL | ull2) - 12098357307243495419ULL);
}

int main() {
  foo();
  std::cout << ull3 << " (expected 3998784)\n";
  return 0;
}

> g++ f.cpp -O0 -o out; ./out
3998784 (expected 3998784)

> g++ f.cpp -O2 -o out; ./out
3493659712 (expected 3998784)
>From gcc-bugs-return-568521-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jul 13 02:34:20 2017
Return-Path: <gcc-bugs-return-568521-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 24370 invoked by alias); 13 Jul 2017 02:34:19 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 24113 invoked by uid 48); 13 Jul 2017 02:34:09 -0000
From: "toojays at toojays dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/64867] warning for passing non-POD to varargs function
Date: Thu, 13 Jul 2017 02:34: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: toojays at toojays dot net
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-64867-4-b5kEOAmEQM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64867-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64867-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: 2017-07/txt/msg01072.txt.bz2
Content-length: 443

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

John Steele Scott <toojays at toojays dot net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |toojays at toojays dot net

--- Comment #14 from John Steele Scott <toojays at toojays dot net> ---
FWIW Clang has this warning via -Wnon-pod-varargs.
>From gcc-bugs-return-568522-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jul 13 03:43:00 2017
Return-Path: <gcc-bugs-return-568522-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 19926 invoked by alias); 13 Jul 2017 03:42:59 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 19590 invoked by uid 48); 13 Jul 2017 03:42:52 -0000
From: "jvdelisle at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libquadmath/65757] gfortran gives incorrect result for anint with real*16 argument
Date: Thu, 13 Jul 2017 03:42:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libquadmath
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jvdelisle at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jvdelisle at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on assigned_to everconfirmed
Message-ID: <bug-65757-4-3BSFU2J0wW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65757-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65757-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: 2017-07/txt/msg01073.txt.bz2
Content-length: 1233

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

Jerry DeLisle <jvdelisle at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2017-07-13
           Assignee|unassigned at gcc dot gnu.org      |jvdelisle at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #15 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
(In reply to joseph@codesourcery.com from comment #11)
> I don't know what process Jakub and Tobias used (a) to identify relevant 
> files / changes in glibc and (b) to make all the changes to operate on 
> __float128 rather than long double.  Roughly, it's 
> sysdeps/ieee754/ldbl-128, *plus* strtod-related files from stdlib/, *plus* 
> printf-related files from stdio-common, *plus* some functions (especially 
> <complex.h> functions) from math/, that are used in libquadmath and so may 
> need updating for changes made in glibc.

Evidently we need to fix this. I will add to my list as assigned to me and get
with Tobias for some hints.
>From gcc-bugs-return-568523-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jul 13 03:44:59 2017
Return-Path: <gcc-bugs-return-568523-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23277 invoked by alias); 13 Jul 2017 03:44: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 22962 invoked by uid 55); 13 Jul 2017 03:44:49 -0000
From: "ian at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug go/81393] Bootstrap failure on s390x-linux while building libgo against recent glibc
Date: Thu, 13 Jul 2017 03:44:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: go
X-Bugzilla-Version: 7.1.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ian 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-81393-4-YzgDdU85hd@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81393-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81393-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: 2017-07/txt/msg01074.txt.bz2
Content-length: 622

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

--- Comment #3 from ian at gcc dot gnu.org <ian at gcc dot gnu.org> ---
Author: ian
Date: Thu Jul 13 03:44:14 2017
New Revision: 250174

URL: https://gcc.gnu.org/viewcvs?rev=250174&root=gcc&view=rev
Log:
        PR go/81393
    syscall: don't use GETREGS/SETREGS on s390

    They were removed in recent glibc.

    Patch by Andreas Krebbel for GCC PR 81393.

    Reviewed-on: https://go-review.googlesource.com/48231

Modified:
    trunk/gcc/go/gofrontend/MERGE
    trunk/libgo/go/syscall/syscall_linux_s390.go
    trunk/libgo/go/syscall/syscall_linux_s390x.go
>From gcc-bugs-return-568524-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jul 13 03:50:13 2017
Return-Path: <gcc-bugs-return-568524-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 38341 invoked by alias); 13 Jul 2017 03:50: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 38057 invoked by uid 48); 13 Jul 2017 03:50:03 -0000
From: "ian at airs dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug go/81393] Bootstrap failure on s390x-linux while building libgo against recent glibc
Date: Thu, 13 Jul 2017 03:50:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: go
X-Bugzilla-Version: 7.1.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ian at airs dot com
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 cc resolution
Message-ID: <bug-81393-4-tMKdMAL8JZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81393-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81393-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: 2017-07/txt/msg01075.txt.bz2
Content-length: 498

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

Ian Lance Taylor <ian at airs dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
                 CC|                            |ian at airs dot com
         Resolution|---                         |FIXED

--- Comment #4 from Ian Lance Taylor <ian at airs dot com> ---
Should be fixed.
>From gcc-bugs-return-568525-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jul 13 04:27:58 2017
Return-Path: <gcc-bugs-return-568525-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 84756 invoked by alias); 13 Jul 2017 04:27: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 84501 invoked by uid 48); 13 Jul 2017 04:27:53 -0000
From: "jvdelisle at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/81296] derived type I/o problem
Date: Thu, 13 Jul 2017 04:27: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: 7.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jvdelisle at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jvdelisle at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: assigned_to
Message-ID: <bug-81296-4-t0B8B0U3Cy@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81296-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81296-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: 2017-07/txt/msg01076.txt.bz2
Content-length: 418

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

Jerry DeLisle <jvdelisle at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at gcc dot gnu.org      |jvdelisle at gcc dot gnu.org

--- Comment #2 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
I will have a look.
>From gcc-bugs-return-568526-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jul 13 05:23:02 2017
Return-Path: <gcc-bugs-return-568526-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 72228 invoked by alias); 13 Jul 2017 05:23: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 54374 invoked by uid 48); 13 Jul 2017 05:22:47 -0000
From: "timo.teras at iki dot fi" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/80117] Standard'Word_Size is wrong for aarch64 ILP32
Date: Thu, 13 Jul 2017 05:23:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ada
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: build
X-Bugzilla-Severity: normal
X-Bugzilla-Who: timo.teras at iki dot fi
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-80117-4-2IMV92QLkn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80117-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80117-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: 2017-07/txt/msg01077.txt.bz2
Content-length: 740

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

Timo Teräs <timo.teras at iki dot fi> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |timo.teras at iki dot fi

--- Comment #21 from Timo Teräs <timo.teras at iki dot fi> ---
This caused a regression for non-multilib builds. Now my non-multilib lp64
build fails with:
a-cfinve.ads:245:04: warning: in instantiation at a-coboho.adb:55
a-cfinve.ads:245:04: warning: types for unchecked conversion have different
sizes

Probably because the logic added in this patch to Makefile.in picks up 64-bit
file only when multilib is enabled.
>From gcc-bugs-return-568527-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jul 13 05:29:27 2017
Return-Path: <gcc-bugs-return-568527-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 105013 invoked by alias); 13 Jul 2017 05:29:27 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 104921 invoked by uid 48); 13 Jul 2017 05:29:21 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/80117] Standard'Word_Size is wrong for aarch64 ILP32
Date: Thu, 13 Jul 2017 05:29:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ada
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: build
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-80117-4-AGzra9I2oD@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80117-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80117-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: 2017-07/txt/msg01078.txt.bz2
Content-length: 765

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

--- Comment #22 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Timo Teräs from comment #21)
> This caused a regression for non-multilib builds. Now my non-multilib lp64
> build fails with:
> a-cfinve.ads:245:04: warning: in instantiation at a-coboho.adb:55
> a-cfinve.ads:245:04: warning: types for unchecked conversion have different
> sizes
> 
> Probably because the logic added in this patch to Makefile.in picks up
> 64-bit file only when multilib is enabled.

On which branch?  The logic for GCC 7 and GCC 8 are different as Makefile.in
changes are not used any more.  Also did you modify anything as multilib itself
should be enabled anyways for aarch64 due to the use /lib64
>From gcc-bugs-return-568528-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jul 13 05:39:10 2017
Return-Path: <gcc-bugs-return-568528-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 4252 invoked by alias); 13 Jul 2017 05:38: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 404 invoked by uid 48); 13 Jul 2017 05:35:44 -0000
From: "timo.teras at iki dot fi" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/80117] Standard'Word_Size is wrong for aarch64 ILP32
Date: Thu, 13 Jul 2017 05:38:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ada
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: build
X-Bugzilla-Severity: normal
X-Bugzilla-Who: timo.teras at iki dot fi
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-80117-4-9zalAEZGUg@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80117-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80117-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: 2017-07/txt/msg01079.txt.bz2
Content-length: 1635

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

--- Comment #23 from Timo Teräs <timo.teras at iki dot fi> ---
(In reply to Andrew Pinski from comment #22)
> (In reply to Timo Teräs from comment #21)
> > This caused a regression for non-multilib builds. Now my non-multilib lp64
> > build fails with:
> > a-cfinve.ads:245:04: warning: in instantiation at a-coboho.adb:55
> > a-cfinve.ads:245:04: warning: types for unchecked conversion have different
> > sizes
> > 
> > Probably because the logic added in this patch to Makefile.in picks up
> > 64-bit file only when multilib is enabled.
> 
> On which branch?  The logic for GCC 7 and GCC 8 are different as Makefile.in
> changes are not used any more.  Also did you modify anything as multilib
> itself should be enabled anyways for aarch64 due to the use /lib64

GCC 6.4.0 with some patches.

Should have looked how it detects the multilib type. We have the build
hardwired to use /lib always with
--- ./gcc/config/aarch64/t-aarch64-linux.orig
+++ ./gcc/config/aarch64/t-aarch64-linux
@@ -22,7 +22,7 @@
 LIB1ASMFUNCS = _aarch64_sync_cache_range

 AARCH_BE = $(if $(findstring TARGET_BIG_ENDIAN_DEFAULT=1, $(tm_defines)),_be)
-MULTILIB_OSDIRNAMES = mabi.lp64=../lib64$(call
if_multiarch,:aarch64$(AARCH_BE)-linux-gnu)
+MULTILIB_OSDIRNAMES = mabi.lp64=../lib
 MULTIARCH_DIRNAME = $(call if_multiarch,aarch64$(AARCH_BE)-linux-gnu)

 MULTILIB_OSDIRNAMES += mabi.ilp32=../libilp32

So it's conflict between this. This works everywhere else, so I wonder if we
could have the ada makefile check the abi somehow more reliably than pathname?
>From gcc-bugs-return-568529-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jul 13 05:45:44 2017
Return-Path: <gcc-bugs-return-568529-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 15856 invoked by alias); 13 Jul 2017 05:44: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 14322 invoked by uid 48); 13 Jul 2017 05:43:40 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/80117] Standard'Word_Size is wrong for aarch64 ILP32
Date: Thu, 13 Jul 2017 05:44:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ada
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: build
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-80117-4-XwHKcOizEt@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80117-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80117-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: 2017-07/txt/msg01080.txt.bz2
Content-length: 566

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

--- Comment #24 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
>This works everywhere else, so I wonder if we could have the ada makefile check the abi somehow more reliably than pathname?

Your patch is broken anyways because it makes your OS very incompatible with
most others.  Note I think this is a YOCTO which I know very much is wrong in
doing that.  YOCTO is not friendly to multi-libing with aarch32 and aarch64 and
ilp32.  Cavium had to hack the YOCTO patches to get rid of that brokenness.
>From gcc-bugs-return-568530-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jul 13 05:46:09 2017
Return-Path: <gcc-bugs-return-568530-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 18973 invoked by alias); 13 Jul 2017 05:45: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 15720 invoked by uid 55); 13 Jul 2017 05:44:22 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81192] gcc ICE at -Os on x86_64-linux-gnu: Segmentation fault
Date: Thu, 13 Jul 2017 05:45: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, patch
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vries at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: vries at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81192-4-3cbPCRtJXh@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81192-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81192-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: 2017-07/txt/msg01081.txt.bz2
Content-length: 835

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

--- Comment #19 from Tom de Vries <vries at gcc dot gnu.org> ---
Author: vries
Date: Thu Jul 13 05:42:15 2017
New Revision: 250175

URL: https://gcc.gnu.org/viewcvs?rev=250175&root=gcc&view=rev
Log:
Backport "Fix sigsegv in find_same_succ_bb"

2017-07-13  Tom de Vries  <tom@codesourcery.com>

        backport from mainline:
        2017-07-03  Tom de Vries  <tom@codesourcery.com>

        PR tree-optimization/81192
        * tree-ssa-tail-merge.c (same_succ_flush_bb): Handle
        BB_SAME_SUCC (bb) == NULL.

        * gcc.dg/pr81192.c: New test.

Added:
    branches/gcc-6-branch/gcc/testsuite/gcc.dg/pr81192.c
Modified:
    branches/gcc-6-branch/gcc/ChangeLog
    branches/gcc-6-branch/gcc/testsuite/ChangeLog
    branches/gcc-6-branch/gcc/tree-ssa-tail-merge.c
>From gcc-bugs-return-568531-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jul 13 05:52:12 2017
Return-Path: <gcc-bugs-return-568531-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 35299 invoked by alias); 13 Jul 2017 05:52: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 34066 invoked by uid 48); 13 Jul 2017 05:52:05 -0000
From: "timo.teras at iki dot fi" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/80117] Standard'Word_Size is wrong for aarch64 ILP32
Date: Thu, 13 Jul 2017 05:52:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ada
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: build
X-Bugzilla-Severity: normal
X-Bugzilla-Who: timo.teras at iki dot fi
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-80117-4-xJdHOTka3H@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80117-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80117-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: 2017-07/txt/msg01082.txt.bz2
Content-length: 931

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

--- Comment #25 from Timo Teräs <timo.teras at iki dot fi> ---
(In reply to Andrew Pinski from comment #24)
> >This works everywhere else, so I wonder if we could have the ada makefile check the abi somehow more reliably than pathname?
> 
> Your patch is broken anyways because it makes your OS very incompatible with
> most others.  Note I think this is a YOCTO which I know very much is wrong
> in doing that.  YOCTO is not friendly to multi-libing with aarch32 and
> aarch64 and ilp32.  Cavium had to hack the YOCTO patches to get rid of that
> brokenness.

We have musl c-library so binary compatibility is limited anyways. We do ship
/lib64 -> /lib symlink in compatibility packages, though. My concern is that
there are valid reasons to change that path. Could it be tested against
MULTILIB_OSDIRNAMES or have alternate test that is not based on the path?
>From gcc-bugs-return-568532-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jul 13 05:52:39 2017
Return-Path: <gcc-bugs-return-568532-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 60749 invoked by alias); 13 Jul 2017 05:52:37 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 46558 invoked by uid 48); 13 Jul 2017 05:52:25 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/81192] gcc ICE at -Os on x86_64-linux-gnu: Segmentation fault
Date: Thu, 13 Jul 2017 05:52: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, patch
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vries at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: vries at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-81192-4-7gdek2bd6x@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81192-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81192-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: 2017-07/txt/msg01083.txt.bz2
Content-length: 517

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

Tom de Vries <vries at gcc dot gnu.org> changed:

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

--- Comment #20 from Tom de Vries <vries at gcc dot gnu.org> ---
Committed the 2 patches to trunk.

Backported first patch to 5,6,7 branches.

Marking resolved-fixed.
>From gcc-bugs-return-568533-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jul 13 06:24:03 2017
Return-Path: <gcc-bugs-return-568533-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 127552 invoked by alias); 13 Jul 2017 06:24: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 124020 invoked by uid 89); 13 Jul 2017 06:24:01 -0000
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.4 required=5.0 testsºYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=HContent-Transfer-Encoding:8bit
X-HELO: mail-oi0-f54.google.com
Received: from mail-oi0-f54.google.com (HELO mail-oi0-f54.google.com) (209.85.218.54) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 13 Jul 2017 06:23:59 +0000
Received: by mail-oi0-f54.google.com with SMTP id l130so38287213oib.1        for <gcc-bugs@gcc.gnu.org>; Wed, 12 Jul 2017 23:23:58 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d\x1e100.net; s 161025;        h=x-gm-message-state:subject:to:references:from:message-id:date         :user-agent:mime-version:in-reply-to:content-language         :content-transfer-encoding;        bh=khv+hDz0c5mZTgSsn3b4DDahtp0CeviqLsekiTTwlCw=;        b=nV4T/A1+ncPCRR2E6Qd8dNTnvNOuxLGfhrPRdP4ewyuYN/jzBgYZocPYOTNHHv17vP         IwtooQlkaf3AlV+RMZLVptoqeHh2ywZQyZjQTSBbGjoxNpV+cVbQYUX1YaF1uASFuK34         kyk+bJiQoCz3fKMyEwk4VX6vEarOnHS2WbQRN5Q3JPikbLYPFNHFPMQ+EQ9qpnY8hfx7         peVqJX6nt+WSCCHfJDUXdPgcX5j5Z/1hOR5hCyubsEwfp1aCUgZQrOyceeKSr816kEP5         YTsR7CDBLiWocEG6CNNZ+zxTHXYE0I6cQhkxZ7mn01F5Vez20b/Y7Ge0ns0D9V3b+6jL         UdjQ=X-Gm-Message-State: AIVw111OoumxRntxiw5pUMCSLkPbxPs7+cL2y+2Zgkghbi2a5nrDOZoB	PGvA92yONI3uwUV3+5esYQ=X-Received: by 10.202.75.138 with SMTP id y132mr1634937oia.102.1499927036813;        Wed, 12 Jul 2017 23:23:56 -0700 (PDT)
Received: from ?IPv6:2602:306:80a3:c890:4da1:ca0:8f3e:9b99? ([2602:306:80a3:c890:4da1:ca0:8f3e:9b99])        by smtp.googlemail.com with ESMTPSA id w189sm5781103oib.19.2017.07.12.23.23.55        (version=TLS1_2 cipherìDHE-RSA-AES128-GCM-SHA256 bits\x128/128);        Wed, 12 Jul 2017 23:23:55 -0700 (PDT)
Subject: Re: sanitizer bug maybe.
To: George R Goffe <grgoffe@yahoo.com>, "gcc-bugs@gcc.gnu.org" <gcc-bugs@gcc.gnu.org>
References: <354079210.2637847.1499707798303.ref@mail.yahoo.com> <354079210.2637847.1499707798303@mail.yahoo.com>
From: Jim Wilson <jim.wilson@linaro.org>
Message-ID: <587b185b-bdef-215e-1249-15542e4b8821@linaro.org>
Date: Thu, 13 Jul 2017 06:24:00 -0000
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1
MIME-Version: 1.0
In-Reply-To: <354079210.2637847.1499707798303@mail.yahoo.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
X-SW-Source: 2017-07/txt/msg01084.txt.bz2
Content-length: 574

On 07/10/2017 10:29 AM, George R Goffe via gcc-bugs wrote:
> ../../../../gcc/libsanitizer/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc: In function ‘int __sanitizer::TracerThread(void*)’:
> ../../../../gcc/libsanitizer/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc:276:22: error: aggregate ‘sigaltstack handler_stack’ has incomplete type and cannot be defined
>     struct sigaltstack handler_stack;

If you are doing a build using glibc mainline, then this is FSF GCC bug
81066.
     https://gcc.gnu.org/bugzilla/show_bug.cgi?id066

Jim


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

only message in thread, other threads:[~2017-07-12 14:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-12 14:06 [Bug target/81414] New: ICE in fma steering on AArch64/cortex-a57 amker at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).