gcc-8-20180824 is now available

2018-08-24 Thread gccadmin
Snapshot gcc-8-20180824 is now available on ftp://gcc.gnu.org/pub/gcc/snapshots/8-20180824/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 8 SVN branch with the following options: svn://gcc.gnu.org/svn/gcc/branches/gcc-8

__attribute__(visibility("default"))) and nested structures

2018-08-24 Thread Paul Belanger
Hello, When I write classes in C++ and use the Pimpl idiom, I generally set the structure up like so: Foo.hpp --- class Foo { public: Foo(); ~Foo(); void method1(); void method2(); private: struct impl; std::unique_p

Re: Questions related to creation of libgcov.so

2018-08-24 Thread Joseph Myers
On Fri, 24 Aug 2018, Martin Liška wrote: > > Any symlinks need to be *relative*, not absolute, so the install tree is > > relocatable. There's unlibsubdir / libsubdir_to_prefix in gcc/Makefile.in > > but I'm not sure if that's available in the libgcc/ directory at present. > > > > Well I'm no

Re: Questions related to creation of libgcov.so

2018-08-24 Thread Michael Matz
Hi, On Fri, 24 Aug 2018, Martin Liška wrote: > If I see correctly, for libgcc has following files: > > /home/marxin/bin/gcc/lib64/gcc/x86_64-pc-linux-gnu/9.0.0/libgcc_eh.a > /home/marxin/bin/gcc/lib64/gcc/x86_64-pc-linux-gnu/9.0.0/libgcc.a > /home/marxin/bin/gcc/lib64/libgcc_s.so.1 > /home/marxi

Re: Questions related to creation of libgcov.so

2018-08-24 Thread Martin Liška
On 08/24/2018 04:25 PM, Martin Liška wrote: > On 08/24/2018 03:56 PM, Michael Matz wrote: >> Hi, >> >> On Fri, 24 Aug 2018, Martin Liška wrote: >> > Where > /home/marxin/bin/gcc/lib64/gcc/x86_64-pc-linux-gnu/9.0.0/libgcov.so > points to /home/marxin/bin/gcc/lib64/libgcov.so.1 ? >

Re: Questions related to creation of libgcov.so

2018-08-24 Thread Martin Liška
On 08/24/2018 03:56 PM, Michael Matz wrote: > Hi, > > On Fri, 24 Aug 2018, Martin Liška wrote: > Where /home/marxin/bin/gcc/lib64/gcc/x86_64-pc-linux-gnu/9.0.0/libgcov.so points to /home/marxin/bin/gcc/lib64/libgcov.so.1 ? >>> >>> Any symlinks need to be *relative*, not absolute,

Re: Questions related to creation of libgcov.so

2018-08-24 Thread Michael Matz
Hi, On Fri, 24 Aug 2018, Martin Liška wrote: > >> Where > >> /home/marxin/bin/gcc/lib64/gcc/x86_64-pc-linux-gnu/9.0.0/libgcov.so > >> points to /home/marxin/bin/gcc/lib64/libgcov.so.1 ? > > > > Any symlinks need to be *relative*, not absolute, so the install tree > > is relocatable. There's

Question about gcc options '-mapcs-stack-check' and '-mapcs-frame'

2018-08-24 Thread Akhilesh chirlancha
Hello All, I'm using gcc 5.4.0 for armhf target. I was compiling simple stack over flow test code with '-mapcs-stack-check' option. # gcc -mapcs-stack-check test.c test.c:1:0: warning: -mapcs-stack-check incompatible with -mno-apcs-frame #include ^ As per my understanding from the above warnin

Re: Questions related to creation of libgcov.so

2018-08-24 Thread Martin Liška
On 08/17/2018 02:59 PM, Joseph Myers wrote: > On Fri, 17 Aug 2018, Martin Liška wrote: > >> Where /home/marxin/bin/gcc/lib64/gcc/x86_64-pc-linux-gnu/9.0.0/libgcov.so >> points to >> /home/marxin/bin/gcc/lib64/libgcov.so.1 ? > > Any symlinks need to be *relative*, not absolute, so the install tre

Re: why does c_strlen() return a signed integer?

2018-08-24 Thread Richard Biener
On Fri, Aug 24, 2018 at 12:16 AM Martin Sebor wrote: > > PR 87059 - internal compiler error: in set_value_range, at > tree-vrp.c:289, is apparently due to an argument type mismatch > in a MIN_EXPR introduced by expand_builtin_strncmp(). > > The function calls c_strlen() to compute the length of th