This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug testsuite/10274] New: exelib optimized builds don't work
- From: "mjw at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 12 Jun 2009 21:43:15 -0000
- Subject: [Bug testsuite/10274] New: exelib optimized builds don't work
- Reply-to: sourceware-bugzilla at sourceware dot org
gcc is too smart. The test does some recursive calls so the ustack testcase has
some interesting unwinding to do. But with -O2 or higher gcc optimizes:
void
main_func (int foo)
{
if (foo > 1)
main_func (foo - 1);
else
lib_main();
}
into a direct call to lib_main().
This impacts exelib.exp:
# Just try -O0 and -O3.
# Adding -O, -O2, -Os and mixing lib/exe is a bit overdone
# BUG! -O2, -O3, -Os all break uname tests...
foreach opt {-O0} {
--
Summary: exelib optimized builds don't work
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: testsuite
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: mjw at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=10274
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.