[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: C++ cleanup : get rid of some compilation warnings (issue 353880043
From: |
James Lowe |
Subject: |
Re: C++ cleanup : get rid of some compilation warnings (issue 353880043 by address@hidden) |
Date: |
Fri, 22 Feb 2019 08:41:49 +0000 (GMT) |
Hello,
On Fri, 22 Feb 2019 00:04:27 +0100, John Mandereau <address@hidden> wrote:
> David Kastrup wrote:
> > Huh. Maybe the Ubuntu compilation of gcc/g++ disabled some warnings?
> >
> > g++ --verbose
> > Using built-in specs.
> > COLLECT_GCC=g++
> > COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/8/lto-wrapper
> > OFFLOAD_TARGET_NAMES=nvptx-none
> > OFFLOAD_TARGET_DEFAULT=1
> > Target: x86_64-linux-gnu
> > Configured with: ../src/configure -v --with-pkgversion='Ubuntu 8.2.0-
> > 21ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-8/README.Bugs --
> > enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --
> > prefix=/usr --with-gcc-major-version-only --program-suffix=-8 --
> > program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-
> > build-id --libexecdir=/usr/lib --without-included-gettext --enable-
> > threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --
> > 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 --enable-
> > default-pie --with-system-zlib --with-target-system-zlib --enable-
> > objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686
> > --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --
> > with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-
> > driver --enable-checking=release --build=x86_64-linux-gnu --
> > host=x86_64-linux-gnu --target=x86_64-linux-gnu
> > Thread model: posix
> > gcc version 8.2.0 (Ubuntu 8.2.0-21ubuntu1)
> >
> > Huh. No idea.
>
> On my build host g++ --verbose says
>
> Using built-in specs.
> COLLECT_GCC=/usr/bin/g++
> COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/8/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++,fortran,objc,obj-c++,ada,go,lto --prefix=/usr --
> mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bu
> gzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --
> enable-checking=release --enable-multilib --with-system-zlib --enable-
> __cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object
> --enable-linker-build-id --with-gcc-major-version-only --with-linker-
> hash-style=gnu --enable-plugin --enable-initfini-array --with-isl --
> enable-libmpx --enable-offload-targets=nvptx-none --without-cuda-driver
> --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-
> arch_32=i686 --build=x86_64-redhat-linux
> Thread model: posix
> gcc version 8.2.1 20181215 (Red Hat 8.2.1-6) (GCC)
>
> I did "git diff --word-diff --no-index" to compare our configurations;
> at first glance I didn't see anything meaningful w.r.t that warning,
> which is not surprising given my newbie level in C/C++.
>
> I also attached the output of "gcc -dumpspecs".
**
if it helps (another POV from my vanilla installs I use to test and merge
patches)
Ubuntu 1604LTS out of the box (with latest and greatest updates):
g++ --verbose
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-linux-gnu/5/lto-wrapper
Target: i686-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
5.4.0-6ubuntu1~16.04.11' --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-i386/jre --enable-java-home
--with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-i386
--with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-i386
--with-arch-directory=i386 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar
--enable-objc-gc --enable-targets=all --enable-multiarch --disable-werror
--with-arch-32=i686 --with-multilib-list=m32,m64,mx32 --enable-multilib
--with-tune=generic --enable-checking=release --build=i686-linux-gnu
--host=i686-linux-gnu --target=i686-linux-gnu
Thread model: posix
gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.11)
Ubuntu 1804LTS out of the box (with latest and greatest updates):
++ --verbose
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/8/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 8.2.0-7ubuntu1'
--with-bugurl=file:///usr/share/doc/gcc-8/README.Bugs
--enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr
--with-gcc-major-version-only --program-suffix=-8
--program-prefix=x86_64-linux-gnu- --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 --enable-default-pie
--with-system-zlib --with-target-system-zlib --enable-objc-gc=auto
--enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64
--with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic
--enable-offload-targets=nvptx-none --without-cuda-driver
--enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu
--target=x86_64-linux-gnu
Thread model: posix
gcc version 8.2.0 (Ubuntu 8.2.0-7ubuntu1)
***
James
- Re: C++ cleanup : get rid of some compilation warnings (issue 353880043 by address@hidden), (continued)
- Re: C++ cleanup : get rid of some compilation warnings (issue 353880043 by address@hidden), lemzwerg, 2019/02/19
- Re: C++ cleanup : get rid of some compilation warnings (issue 353880043 by address@hidden), dak, 2019/02/19
- Re: C++ cleanup : get rid of some compilation warnings (issue 353880043 by address@hidden), lemzwerg, 2019/02/19
- Re: C++ cleanup : get rid of some compilation warnings (issue 353880043 by address@hidden), v . villenave, 2019/02/19
- Re: C++ cleanup : get rid of some compilation warnings (issue 353880043 by address@hidden), v . villenave, 2019/02/19
Re: C++ cleanup : get rid of some compilation warnings (issue 353880043 by address@hidden), v . villenave, 2019/02/25