This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/18631] [4.0 Regression] missing error messages passing vectors with -mno-altivec -mabi=altivec
- From: "janis at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Jan 2006 17:52:52 -0000
- Subject: [Bug target/18631] [4.0 Regression] missing error messages passing vectors with -mno-altivec -mabi=altivec
- References: <bug-18631-224@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from janis at gcc dot gnu dot org 2006-01-05 17:52 -------
My nightly build compilers don't show errors or warnings from anything later
than 3.4:
elm3b11% /opt/gcc-nightly/trunk/bin/gcc -c -mno-altivec -mabi=altivec 18631.c
elm3b11% /opt/gcc-nightly/4.1/bin/gcc -c -mno-altivec -mabi=altivec 18631.c
elm3b11% /opt/gcc-nightly/4.0/bin/gcc -c -mno-altivec -mabi=altivec 18631.c
elm3b11% /opt/gcc-nightly/3.4/bin/gcc -c -mno-altivec -mabi=altivec 18631.c
18631.c: In function `ret':
18631.c:3: error: Cannot return value in vector register because altivec
instructions are disabled, use -maltivec to enable them.
18631.c: In function `pass':
18631.c:4: error: Cannot pass argument in vector register because altivec
instructions are disabled, use -maltivec to enable them.
Results are the same with -Wall, and for trunk on 20051002 and 20051030.
Andrew, what options did you use to get the warnings shown in comment #3, and
was that with powerpc*-*-linux*?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18631