[lkml]   [2000]   [Oct]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: test10-pre1 problems on 4-way SuperServer8050
} Hi,
} > How? If you compile with egcs-2.91.66 without frame pointers on ix86 then
} > __builtin_return_address() yields garbage. Does anybody have a generic
} > solution to this problem, other than "compile with frame pointers"? Or is
} > it fixed in newer versions of gcc?
} Are you sure? I just I tried it 2.91.66 and it works. With
} -fomit-frame-pointer only __builtin_return_address(0) works, but that is
} true for any version.

I've found, with several versions of gcc, that leaf functions will give
bad results (sometimes resulting in a bad access fault) with calls to
__builtin_return_address(0). The workaround in the kernel and RTLinux is
making a call do your function isn't a leaf.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:41    [W:0.047 / U:3.224 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site