forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 680277 - Debug builds should always be compiled with frame pointe…
…rs. r=khuey. This patch creates a new MOZ_FRAMEPTR_FLAGS variable that is used only to control the frame pointer flags passed to the compiler. It also computes this flag in a macro so that the toplevel configure and js/src/configure stay in sync.
- Loading branch information
Showing
12 changed files
with
85 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
dnl Set MOZ_FRAMEPTR_FLAGS to the flags that should be used for enabling or | ||
dnl disabling frame pointers in this architecture based on the configure | ||
dnl options | ||
|
||
AC_DEFUN([MOZ_SET_FRAMEPTR_FLAGS], [ | ||
if test "$GNU_CC"; then | ||
MOZ_ENABLE_FRAME_PTR="-fno-omit-frame-pointer" | ||
MOZ_DISABLE_FRAME_PTR="-fomit-frame-pointer" | ||
else | ||
case "$target" in | ||
*-mingw*) | ||
MOZ_ENABLE_FRAME_PTR="-Oy-" | ||
MOZ_DISABLE_FRAME_PTR="-Oy" | ||
;; | ||
esac | ||
fi | ||
# if we are debugging or profiling, we want a frame pointer. | ||
if test -z "$MOZ_OPTIMIZE" -o \ | ||
-n "$MOZ_PROFILING" -o -n "$MOZ_DEBUG"; then | ||
MOZ_FRAMEPTR_FLAGS="$MOZ_ENABLE_FRAME_PTR" | ||
else | ||
MOZ_FRAMEPTR_FLAGS="$MOZ_DISABLE_FRAME_PTR" | ||
fi | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
dnl Set MOZ_FRAMEPTR_FLAGS to the flags that should be used for enabling or | ||
dnl disabling frame pointers in this architecture based on the configure | ||
dnl options | ||
|
||
AC_DEFUN([MOZ_SET_FRAMEPTR_FLAGS], [ | ||
if test "$GNU_CC"; then | ||
MOZ_ENABLE_FRAME_PTR="-fno-omit-frame-pointer" | ||
MOZ_DISABLE_FRAME_PTR="-fomit-frame-pointer" | ||
else | ||
case "$target" in | ||
*-mingw*) | ||
MOZ_ENABLE_FRAME_PTR="-Oy-" | ||
MOZ_DISABLE_FRAME_PTR="-Oy" | ||
;; | ||
esac | ||
fi | ||
# if we are debugging or profiling, we want a frame pointer. | ||
if test -z "$MOZ_OPTIMIZE" -o \ | ||
-n "$MOZ_PROFILING" -o -n "$MOZ_DEBUG"; then | ||
MOZ_FRAMEPTR_FLAGS="$MOZ_ENABLE_FRAME_PTR" | ||
else | ||
MOZ_FRAMEPTR_FLAGS="$MOZ_DISABLE_FRAME_PTR" | ||
fi | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters