Processed: Re: Bug#915405: gcc-8: Spurious stringop-overflow error when compiling with -O2

2018-12-05 Thread Debian Bug Tracking System
Processing control commands: > forwarded -1 https://gcc.gnu.org/PR87296 Bug #915405 [gcc-8] gcc-8: Spurious stringop-overflow error when compiling with -O2 Set Bug forwarded-to-address to 'https://gcc.gnu.org/PR87296'. > tags -1 - moreinfo Bug #915405 [gcc-8] gcc-8: Spurious stringop-overflow e

Bug#915405: gcc-8: Spurious stringop-overflow error when compiling with -O2

2018-12-05 Thread Matthias Klose
Control: forwarded -1 https://gcc.gnu.org/PR87296 Control: tags -1 - moreinfo Control: tags -1 + upstream On 05.12.18 09:12, François Trahay wrote: > #include > #include > > char* copy_string(const char* str) { > int len = strlen(str); > char* dest = malloc(sizeof(char)*len+1); > strncpy(

Bug#915405: gcc-8: Spurious stringop-overflow error when compiling with -O2

2018-12-05 Thread François Trahay
On 05/12/2018 08:29, Matthias Klose wrote: Control: tags -1 + moreinfo On 03.12.18 16:06, François Trahay wrote: Package: gcc-8 Version: 8.2.0-9 Severity: normal Dear Maintainer, I have a piece of code in a CMake project that fails to compile when building in RelWithDebInfo mode. The problem s

Bug#915405: gcc-8: Spurious stringop-overflow error when compiling with -O2

2018-12-04 Thread Matthias Klose
Control: tags -1 + moreinfo On 03.12.18 16:06, François Trahay wrote: > Package: gcc-8 > Version: 8.2.0-9 > Severity: normal > > Dear Maintainer, > I have a piece of code in a CMake project that fails to compile when building > in RelWithDebInfo mode. > The problem seems to come from gcc-8 when b

Processed: Re: Bug#915405: gcc-8: Spurious stringop-overflow error when compiling with -O2

2018-12-04 Thread Debian Bug Tracking System
Processing control commands: > tags -1 + moreinfo Bug #915405 [gcc-8] gcc-8: Spurious stringop-overflow error when compiling with -O2 Added tag(s) moreinfo. -- 915405: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=915405 Debian Bug Tracking System Contact ow...@bugs.debian.org with problem

Bug#915405: gcc-8: Spurious stringop-overflow error when compiling with -O2

2018-12-03 Thread François Trahay
Package: gcc-8 Version: 8.2.0-9 Severity: normal Dear Maintainer, I have a piece of code in a CMake project that fails to compile when building in RelWithDebInfo mode. The problem seems to come from gcc-8 when both -Wall and -O2 options are set: char* copy_string(const char* str) { int len = st