[LLVMbugs] [Bug 2508] -Wno-vla not supported

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Jun 30 15:50:48 PDT 2008


http://llvm.org/bugs/show_bug.cgi?id=2508


Anton Korobeynikov <asl at math.spbu.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |asl at math.spbu.ru
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




--- Comment #1 from Anton Korobeynikov <asl at math.spbu.ru>  2008-06-30 17:50:47 ---
(In reply to comment #0)
> $ llvm-g++ -Wvla x.cpp
> cc1plus: error: unrecognized command line option "-Wvla"
> 
> It'd be great if llvm-g++ would support the -Wvla (and -Wno-vla) option.
This seems to be not supported even by mainline gcc:

$ gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.2.2/work/gcc-4.2.2/configure
--prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.2.2
--includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.2.2/include
--datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.2.2
--mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.2.2/man
--infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.2.2/info
--with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.2.2/include/g++-v4
--host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec
--enable-nls --without-included-gettext --with-system-zlib --disable-checking
--disable-werror --enable-secureplt --disable-libunwind-exceptions
--disable-multilib --enable-libmudflap --disable-libssp --disable-libgcj
--with-arch=i686 --enable-languages=c,c++,fortran --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 4.2.2 (Gentoo 4.2.2 p1.0)

$ touch foo.c && gcc -Wvla foo.c
cc1: error: unrecognized command line option "-Wvla"


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list