https://llvm.org/bugs/show_bug.cgi?id=25535
Bug ID: 25535 Summary: Programs compiled with optimization and profiling crash Product: clang Version: unspecified Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: Driver Assignee: unassignedclangb...@nondot.org Reporter: sisnk...@gmail.com CC: llvm-bugs@lists.llvm.org Classification: Unclassified When using profiling (option -pg) in combination with optimizations (e.g. -O3), compiled programs crash in the profiling routine mcount(). This is because mcount (on x86_64 at least) relies on the frame pointer to be valid. When optimizations are enabled, however, the frame pointer is eliminated. A test case that demonstrates this and a proposed diff to fix this is given at: http://reviews.llvm.org/D14215 The key is to disable frame-pointer elimination in the driver and the frontend when the profiling option is provided. -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs