This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug testsuite/10274] New: exelib optimized builds don't work


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]