--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: gcc-4.9: invalid args to -fsanitize should be an error not a warning
- From: Erik de Castro Lopo <erikd@mega-nerd.com>
- Date: Fri, 18 Apr 2014 10:20:28 +1000
- Message-id: <20140418002028.16899.77604.reportbug@localhost>
Package: gcc-4.9
Version: 4.9-20140411-2
Severity: normal
This is a regression from gcc-4.8.
With gcc-4.8 this works because -fsanitize=address works in 4.8:
> gcc-4.8 -fsanitize=address test.c -o /dev/null
and this fails and exits with non-zero because -fsanitize=integer
is not supported in 4.8:
> gcc-4.8 -fsanitize=integer test.c -o /dev/null
gcc-4.8: error: unrecognized command line option ‘-fsanitize=integer’
> echo $?
1
Now for 4.9:
> gcc-4.9 -fsanitize=integer test.c -o /dev/null
gcc-4.9: warning: unrecognized argument to -fsanitize= option: ‘integer’
cc1: warning: unrecognized argument to -fsanitize= option: ‘integer’
> echo $?
0
This should exit with non-zero so that support for this flag can correctly
be detected in things line autoconf generated configure scripts.
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (800, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.13-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8) (ignored: LC_ALL set to en_AU.UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages gcc-4.9 depends on:
ii binutils 2.24.51.20140411-2
ii cpp-4.9 4.9-20140411-2
ii gcc-4.9-base 4.9-20140411-2
ii libc6 2.18-4
ii libcloog-isl4 0.18.2-1
ii libgcc-4.9-dev 4.9-20140411-2
ii libgmp10 2:6.0.0+dfsg-2
ii libisl10 0.12.2-1
ii libmpc3 1.0.1-1
ii libmpfr4 3.1.2-1
ii zlib1g 1:1.2.8.dfsg-1
Versions of packages gcc-4.9 recommends:
ii libc6-dev 2.18-4
Versions of packages gcc-4.9 suggests:
ii binutils [binutils-gold] 2.24.51.20140411-2
pn gcc-4.9-doc <none>
ii gcc-4.9-locales 4.9-20140411-2
ii gcc-4.9-multilib 4.9-20140411-2
ii libasan1-dbg 4.9-20140411-2
ii libatomic1-dbg 4.9-20140411-2
ii libcilkrts5-dbg 4.9-20140411-2
ii libgcc1-dbg 1:4.9-20140411-2
ii libgomp1-dbg 4.9-20140411-2
ii libitm1-dbg 4.9-20140411-2
ii liblsan0-dbg 4.9-20140411-2
ii libquadmath0-dbg 4.9-20140411-2
ii libtsan0-dbg 4.9-20140411-2
ii libubsan0-dbg 4.9-20140411-2
ii libvtv0-dbg 4.9-20140411-2
-- no debconf information
--- End Message ---