Bug 66858 - [6 Regression] FAIL: g++.dg/pch/system-2.C -O2 -g assembly comparison on aarch64-none-elf, arm-none-eabi
Summary: [6 Regression] FAIL: g++.dg/pch/system-2.C -O2 -g assembly comparison on aarc...
Status: RESOLVED WORKSFORME
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 6.0
: P1 normal
Target Milestone: 6.0
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-13 12:46 UTC by ktkachov
Modified: 2016-01-19 14:38 UTC (History)
4 users (show)

See Also:
Host:
Target: aarch64-none-elf, arm-none-eabi, hppa64-hp-hpux11.11
Build:
Known to work:
Known to fail:
Last reconfirmed: 2015-07-31 00:00:00


Attachments
g++.log entry for the failure (11.24 KB, text/plain)
2015-07-13 12:46 UTC, ktkachov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ktkachov 2015-07-13 12:46:02 UTC
Created attachment 35968 [details]
g++.log entry for the failure

I'm seeing this failure on a bare-metal aarch64-none-elf (newlib target) after:

Author: jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Wed Jul 1 18:27:12 2015 +0000

gcc/c-family/
     * c-opts.c (c_common_post_options): Default to C++14.
     * gcc/testsuite/ lib/target-supports.exp (cxx_default): Set to C++14.

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

I'm attaching the log entry from the assembly comparison test.
Running the test with /-std=gnu++98 works fine.

I don't see this failure on linux targets (glibc based)
Comment 1 John David Anglin 2015-07-31 15:32:16 UTC
PASS: g++.dg/pch/system-2.C  -O2 -g -I. -Dwithout_PCH (test for excess errors)line #1069<       .stringz        "_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED4Ei">       .stringz        "_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED4Ev"line #3819
<       .stringz        "_ZNSaIcED4Ei"
>       .stringz        "_ZNSaIcED4Ev"FAIL: g++.dg/pch/system-2.C  -O2 -g assembly comparison
Comment 2 Andrew Pinski 2015-12-02 08:59:22 UTC
This is related to maybe_retrofit_in_chrg somehow.
Comment 3 Jakub Jelinek 2016-01-19 11:08:11 UTC
Could you please preprocess (without pch)
system-2.Hs
and replace its content temporarily with the preprocessed source and see if you can still reproduce it?  If yes, can you please attach it?
Comment 4 ktkachov 2016-01-19 11:38:49 UTC
It passes today on arm-none-eabi and aarch64-none-elf.
John, does it still fail on hppa64?
Comment 5 dave.anglin 2016-01-19 14:37:03 UTC
On 2016-01-19 6:38 AM, ktkachov at gcc dot gnu.org wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66858
>
> --- Comment #4 from ktkachov at gcc dot gnu.org ---
> It passes today on arm-none-eabi and aarch64-none-elf.
> John, does it still fail on hppa64?

It passed on hppa64.

Dave
Comment 6 Jakub Jelinek 2016-01-19 14:38:36 UTC
Therefore WORKSFORME then.