diff options
| author | Glenn Morris | 2012-07-30 07:30:20 -0700 |
|---|---|---|
| committer | Glenn Morris | 2012-07-30 07:30:20 -0700 |
| commit | 0a763bd17bc8c282523a137ad9984c8a314aabd2 (patch) | |
| tree | b97370e13160e5de82a9080ce9085b6cdd23d35e | |
| parent | 259a41782b8470ff72809b83c7b116bf219f14f3 (diff) | |
| download | emacs-0a763bd17bc8c282523a137ad9984c8a314aabd2.tar.gz emacs-0a763bd17bc8c282523a137ad9984c8a314aabd2.zip | |
Move _longjmp, _setjmp from src/s to configure
* configure.ac (_longjmp, _setjmp): Move here from src/s.
* src/s/usg5-4-common.h (_longjmp, _setjmp): Let configure set them.
* src/s/irix6-5.h (_longjmp, _setjmp): No more need to undefine.
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | configure.ac | 9 | ||||
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/s/irix6-5.h | 3 | ||||
| -rw-r--r-- | src/s/usg5-4-common.h | 5 |
5 files changed, 18 insertions, 8 deletions
| @@ -1,3 +1,7 @@ | |||
| 1 | 2012-07-30 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * configure.ac (_longjmp, _setjmp): Move here from src/s. | ||
| 4 | |||
| 1 | 2012-07-30 Jan Djärv <jan.h.d@swipnet.se> | 5 | 2012-07-30 Jan Djärv <jan.h.d@swipnet.se> |
| 2 | 6 | ||
| 3 | * Makefile.in (install-arch-indep): Remove sh -x. | 7 | * Makefile.in (install-arch-indep): Remove sh -x. |
diff --git a/configure.ac b/configure.ac index 9b8cabf8e4a..9ca02cce7cc 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -3631,6 +3631,15 @@ else | |||
| 3631 | esac | 3631 | esac |
| 3632 | fi dnl GCC? | 3632 | fi dnl GCC? |
| 3633 | 3633 | ||
| 3634 | case $opsys in | ||
| 3635 | sol2* | unixware ) | ||
| 3636 | dnl setjmp and longjmp can safely replace _setjmp and _longjmp, | ||
| 3637 | dnl but they will run more slowly. | ||
| 3638 | AC_DEFINE(_setjmp, setjmp, [Some platforms redefine this.]) | ||
| 3639 | AC_DEFINE(_longjmp, longjmp, [Some platforms redefine this.]) | ||
| 3640 | ;; | ||
| 3641 | esac | ||
| 3642 | |||
| 3634 | 3643 | ||
| 3635 | dnl Used in xfaces.c. | 3644 | dnl Used in xfaces.c. |
| 3636 | case $opsys in | 3645 | case $opsys in |
diff --git a/src/ChangeLog b/src/ChangeLog index e8aff22c2cb..37d660da785 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-07-30 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * s/usg5-4-common.h (_longjmp, _setjmp): Let configure set them. | ||
| 4 | * s/irix6-5.h (_longjmp, _setjmp): No more need to undefine. | ||
| 5 | |||
| 1 | 2012-07-30 Andreas Schwab <schwab@linux-m68k.org> | 6 | 2012-07-30 Andreas Schwab <schwab@linux-m68k.org> |
| 2 | 7 | ||
| 3 | * keymap.c (Fkey_description): Don't remove 0x80 bit from | 8 | * keymap.c (Fkey_description): Don't remove 0x80 bit from |
diff --git a/src/s/irix6-5.h b/src/s/irix6-5.h index 9b215845461..1750183189d 100644 --- a/src/s/irix6-5.h +++ b/src/s/irix6-5.h | |||
| @@ -19,9 +19,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 19 | 19 | ||
| 20 | #include "usg5-4-common.h" | 20 | #include "usg5-4-common.h" |
| 21 | 21 | ||
| 22 | #undef _longjmp /* use system versions, not conservative aliases */ | ||
| 23 | #undef _setjmp | ||
| 24 | |||
| 25 | #ifdef emacs | 22 | #ifdef emacs |
| 26 | char *_getpty(); | 23 | char *_getpty(); |
| 27 | #endif | 24 | #endif |
diff --git a/src/s/usg5-4-common.h b/src/s/usg5-4-common.h index 6ead01d3712..12506bd8d08 100644 --- a/src/s/usg5-4-common.h +++ b/src/s/usg5-4-common.h | |||
| @@ -20,11 +20,6 @@ GNU General Public License for more details. | |||
| 20 | You should have received a copy of the GNU General Public License | 20 | You should have received a copy of the GNU General Public License |
| 21 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | 21 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ |
| 22 | 22 | ||
| 23 | /* setjmp and longjmp can safely replace _setjmp and _longjmp, | ||
| 24 | but they will run slower. */ | ||
| 25 | #define _setjmp setjmp | ||
| 26 | #define _longjmp longjmp | ||
| 27 | |||
| 28 | /* Get FIONREAD from <sys/filio.h>. Get <sys/ttold.h> to get struct tchars. | 23 | /* Get FIONREAD from <sys/filio.h>. Get <sys/ttold.h> to get struct tchars. |
| 29 | But get <termio.h> first to make sure ttold.h doesn't interfere. */ | 24 | But get <termio.h> first to make sure ttold.h doesn't interfere. */ |
| 30 | #include <sys/wait.h> | 25 | #include <sys/wait.h> |