* [Bug translator/10348] New: Compilation failure with gcc snapshot: switch jumps over variable initialization
@ 2009-06-30 11:47 eugen at debian dot org
2009-07-07 18:28 ` [Bug translator/10348] " mjw at redhat dot com
0 siblings, 1 reply; 2+ messages in thread
From: eugen at debian dot org @ 2009-06-30 11:47 UTC (permalink / raw)
To: systemtap
There is a compilation error while trying to compile systemtap using the
following gcc version:
gcc version 4.5.0 20090620 (experimental) [trunk revision 148747] (Debian
20090620-1)
Error messages:
x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -DBINDIR='"/usr/bin"'
-DSYSCONFDIR='"/etc"' -DPKGDATADIR='"/usr/share/systemtap"'
-DPKGLIBDIR='"/usr/lib/systemtap"' -I/usr/include/nss -I/usr/include/nspr
-D_GNU_SOURCE -fexceptions -Wall -Werror -Wunused -Wformat=2 -W -Wall -g
-D_GNU_SOURCE -O2 -fstack-protector-all -D_FORTIFY_SOURCE=2 -MT stap-loc2c.o -MD
-MP -MF .deps/stap-loc2c.Tpo -c -o stap-loc2c.o `test -f 'loc2c.c' || echo
'./'`loc2c.c
cc1: warnings being treated as errors
loc2c.c: In function 'translate':
loc2c.c:258:2: error: switch jumps over variable initialization
loc2c.c:237:7: note: switch starts here
loc2c.c:254:4: note: 'ignore' declared here
loc2c.c:267:2: error: switch jumps over variable initialization
loc2c.c:237:7: note: switch starts here
loc2c.c:254:4: note: 'ignore' declared here
loc2c.c:271:2: error: switch jumps over variable initialization
loc2c.c:237:7: note: switch starts here
loc2c.c:254:4: note: 'ignore' declared here
...and many more
The cause of errors is use of macro POP() that creates variable declarations
inside switch in file loc2c.c.
--
Summary: Compilation failure with gcc snapshot: switch jumps over
variable initialization
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: translator
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: eugen at debian dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=10348
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-07-07 18:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-30 11:47 [Bug translator/10348] New: Compilation failure with gcc snapshot: switch jumps over variable initialization eugen at debian dot org
2009-07-07 18:28 ` [Bug translator/10348] " mjw at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).