Re: Bogus `-Wmaybe-uninitialized' warning with optimisation and `-Wall'

2017-02-28 Thread Kyrill Tkachov
Hi, On 28/02/17 09:09, Casper Ti. Vector wrote: Hello, the following source file (here called `gcc_bug.c') triggers `-Wmaybe-uninitialized' when compiled with `-Os', `-O1' or stronger optimisation, plus `-Wall': #include

Re: GCC 6.1.0 ARM cross compiling xgcc error not producing output file from .S files

2016-05-12 Thread Kyrill Tkachov
Hi, On 12/05/16 10:46, RaghuShankar wrote: Hi, I am trying to cross compile the latest gcc 6.1.0 to arm architecture. At the end of libgcc compilation i am getting the error *"root/embeddedlinux/gcc/armcrosstool/arm-linux-gnueabi/bin/ar: _thumb1_case_sqi.o: No such file or directory"* *But wh

Re: gcc gives inccorect value for simple expression

2016-04-22 Thread Kyrill Tkachov
On 22/04/16 14:01, c...@center.wakayama-u.ac.jp wrote: The following code, when compiled with gcc, it outputs "7". I have tried it with gcc-4.8.3 and gcc-6.0.1-20160415, both on x86_64 linux, with options -O0, -g, -O2. All of them gave the same answer. When compiled with clang, it gives 6. I

Re: Segmentation fault with unique_ptr

2015-02-13 Thread Kyrill Tkachov
On 13/02/15 11:15, tassos_souris wrote: Hi to everyone, I am using g++-4.9 with -std=c++14 option (no optimization flag). For some reason i have the following singly_linked_list class. The usage is this: 1) Construct a singly linked list 2) push_front() at least 1 values (this is import