From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32683 invoked by alias); 19 Nov 2014 11:51:18 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 32618 invoked by uid 48); 19 Nov 2014 11:51:14 -0000 From: "doko at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/63958] New: [5 Regression] bootstrap failure in the sanitizer libs on sparc-linux-gnu Date: Wed, 19 Nov 2014 11:51:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: sanitizer X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: doko at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc Message-ID: 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: 2014-11/txt/msg01856.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D63958 Bug ID: 63958 Summary: [5 Regression] bootstrap failure in the sanitizer libs on sparc-linux-gnu Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: doko at gcc dot gnu.org CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org seen with r217751 on the trunk libtool: compile: /=C2=ABPKGBUILDDIR=C2=BB/build/./gcc/xgcc -B/=C2=ABPKGBUILDDIR=C2=BB/build/./gcc/ -B/usr/lib/gcc-snapshot/sparc-linux= -gnu/bin/ -B/usr/lib/gcc-snapshot/sparc-linux-gnu/lib/ -isystem /usr/lib/gcc-snapshot/sparc-linux-gnu/include -isystem /usr/lib/gcc-snapshot/sparc-linux-gnu/sys-include -DHAVE_CONFIG_H -I../../../../src/libatomic/config/posix -I../../../../src/libatomic -I. -W= all -Werror -pthread -g -O2 -m64 -MT init.lo -MD -MP -MF .deps/init.Tpo -c ../../../../src/libatomic/init.c -o init.o >/dev/null 2>&1 /=C2=ABPKGBUILDDIR=C2=BB/build/./gcc/xgcc -B/=C2=ABPKGBUILDDIR=C2=BB/build/= ./gcc/ -B/usr/lib/gcc-snapshot/sparc-linux-gnu/bin/ -B/usr/lib/gcc-snapshot/sparc-linux-gnu/lib/ -isystem /usr/lib/gcc-snapshot/sparc-linux-gnu/include -isystem /usr/lib/gcc-snapshot/sparc-linux-gnu/sys-include -c -g -O2 -fPIC -W -= Wall -gnatpg -nostdinc a-wwboio.adb -o a-wwboio.o In file included from ../../../../src/libsanitizer/sanitizer_common/sanitizer_platform_limits_lin= ux.cc:40:0: /usr/include/sparc-linux-gnu/asm/stat.h:60:2: error: 'time_t' does not name= a type time_t st_atime; ^ /usr/include/sparc-linux-gnu/asm/stat.h:62:2: error: 'time_t' does not name= a type time_t st_mtime; ^ /usr/include/sparc-linux-gnu/asm/stat.h:64:2: error: 'time_t' does not name= a type time_t st_ctime; ^ yes In file included from ../../../../src/libsanitizer/sanitizer_common/sanitizer_platform_limits_lin= ux.cc:20:0: ../../../../src/libsanitizer/sanitizer_common/sanitizer_platform_limits_lin= ux.cc:64:78: error: invalid application of 'sizeof' to incomplete type '__old_kernel_sta= t' COMPILER_CHECK(struct___old_kernel_stat_sz =3D=3D sizeof(struct __old_kernel_stat)); = ^ ../../../../src/libsanitizer/sanitizer_common/sanitizer_internal_defs.h:272= :65: note: in definition of macro 'IMPL_COMPILER_ASSERT' typedef char IMPL_PASTE(assertion_failed_##_, line)[2*(int)(pred)-1] ^ ../../../../src/libsanitizer/sanitizer_common/sanitizer_platform_limits_lin= ux.cc:64:1: note: in expansion of macro 'COMPILER_CHECK' COMPILER_CHECK(struct___old_kernel_stat_sz =3D=3D sizeof(struct __old_kernel_stat)); ^ ../../../../src/libsanitizer/sanitizer_common/sanitizer_platform_limits_lin= ux.cc:67:16: error: 'struct_kernel_stat_sz' was not declared in this scope COMPILER_CHECK(struct_kernel_stat_sz =3D=3D sizeof(struct stat)); ^ ../../../../src/libsanitizer/sanitizer_common/sanitizer_internal_defs.h:272= :65: note: in definition of macro 'IMPL_COMPILER_ASSERT' typedef char IMPL_PASTE(assertion_failed_##_, line)[2*(int)(pred)-1] ^ ../../../../src/libsanitizer/sanitizer_common/sanitizer_platform_limits_lin= ux.cc:67:1: note: in expansion of macro 'COMPILER_CHECK' COMPILER_CHECK(struct_kernel_stat_sz =3D=3D sizeof(struct stat)); ^ checking for getrlimit... Makefile:447: recipe for target 'sanitizer_platform_limits_linux.lo' failed make[6]: *** [sanitizer_platform_limits_linux.lo] Error 1 make[6]: *** Waiting for unfinished jobs.... >>From gcc-bugs-return-467385-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Nov 19 11:57:54 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 4205 invoked by alias); 19 Nov 2014 11:57:54 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 4177 invoked by uid 48); 19 Nov 2014 11:57:50 -0000 From: "lh_mouse at 126 dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/63959] New: G++ misreports volatile int as trivially copyable Date: Wed, 19 Nov 2014 11:57:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: lh_mouse at 126 dot com X-Bugzilla-Status: UNCONFIRMED 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 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-11/txt/msg01857.txt.bz2 Content-length: 899 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63959 Bug ID: 63959 Summary: G++ misreports volatile int as trivially copyable Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: lh_mouse at 126 dot com The type trait std::is_trivially_copyable::value yields true on g++ (GCC) 5.0.0 20141119 (experimental). ISO C++ states that volatile types are NOT trivially copyable: N3936 3.9 Types [basic.types] 9 Arithmetic types (3.9.1), ... Cv-unqualified scalar types, trivially copyable class types (Clause 9), arrays of such types, ** and nonvolatile const-qualified versions of these types (3.9.3) ** are collectively called trivially copyable types. ... So this is a bug. Please fix.