This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/12822] New: [tree-ssa] Bogus warning with asm in statement expression
- From: "falk at debian dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Oct 2003 12:21:36 -0000
- Subject: [Bug c/12822] New: [tree-ssa] Bogus warning with asm in statement expression
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12822
Summary: [tree-ssa] Bogus warning with asm in statement
expression
Product: gcc
Version: tree-ssa
Status: UNCONFIRMED
Keywords: diagnostic
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: falk at debian dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: alphaev68-unknown-linux-gnu
GCC host triplet: alphaev68-unknown-linux-gnu
GCC target triplet: alphaev68-unknown-linux-gnu
falk@juist:/tmp% cat test.c
void
ev4_flush_tlb_current_page(unsigned long addr)
{
({
unsigned long r17;
r17 = addr;
asm ("");
});
}
falk@juist:/tmp% gcc -v -c test.c
Reading specs from
/usr/local/stow/gcc-tree-ssa-2003.10.29/bin/../lib/gcc/alphaev68-unknown-linux-gnu/3.5-tree-ssa/specs
Configured with: ../configure --disable-nls --enable-languages=c++
Thread model: posix
gcc version 3.5-tree-ssa 20031029 (merged 20031026)
/usr/local/stow/gcc-tree-ssa-2003.10.29/bin/../libexec/gcc/alphaev68-unknown-linux-gnu/3.5-tree-ssa/cc1 -quiet -v -iprefix /usr/local/stow/gcc-tree-ssa-2003.10.29/bin/../lib/gcc/alphaev68-unknown-linux-gnu/3.5-tree-ssa/ test.c -quiet -dumpbase test.c -mcpu=ev67 -auxbase test -version -o /tmp/ccDWYo0U.s
ignoring nonexistent directory
"/usr/local/stow/gcc-tree-ssa-2003.10.29/bin/../lib/gcc/alphaev68-unknown-linux-gnu/3.5-tree-ssa/../../../../alphaev68-unknown-linux-gnu/include"
ignoring nonexistent directory "NONE/include"
ignoring duplicate directory
"/usr/local/lib/gcc/alphaev68-unknown-linux-gnu/3.5-tree-ssa/include"
ignoring nonexistent directory
"/usr/local/lib/gcc/alphaev68-unknown-linux-gnu/3.5-tree-ssa/../../../../alphaev68-unknown-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/stow/gcc-tree-ssa-2003.10.29/bin/../lib/gcc/alphaev68-unknown-linux-gnu/3.5-tree-ssa/include
/usr/local/include
/usr/include
End of search list.
GNU C version 3.5-tree-ssa 20031029 (merged 20031026) (alphaev68-unknown-linux-gnu)
compiled by GNU C version 3.5-tree-ssa 20031029 (merged 20031026).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
test.c: In function `ev4_flush_tlb_current_page':
test.c:7: warning: statement-expressions should end with a non-void expression
as -no-mdebug -o test.o /tmp/ccDWYo0U.s