This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/10348] New: Compilation failure with gcc snapshot: switch jumps over variable initialization
- From: "eugen at debian dot org" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 30 Jun 2009 11:47:28 -0000
- Subject: [Bug translator/10348] New: Compilation failure with gcc snapshot: switch jumps over variable initialization
- Reply-to: sourceware-bugzilla at sourceware dot org
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.