diff options
| author | Paul Eggert | 2016-12-06 23:41:45 -0800 |
|---|---|---|
| committer | Paul Eggert | 2016-12-06 23:43:24 -0800 |
| commit | 8e5a769965313a7a1c42b5992ed24e8b0ea71ead (patch) | |
| tree | 1f7d323a1af2bfc1338aef94008af72cb3486e85 | |
| parent | f0870da2bb5eee848a5561fb58b2ec3a63861052 (diff) | |
| download | emacs-8e5a769965313a7a1c42b5992ed24e8b0ea71ead.tar.gz emacs-8e5a769965313a7a1c42b5992ed24e8b0ea71ead.zip | |
Clean out some IRIX cruft
* etc/MACHINES: Remove obsolete discussion of IRIX.
* src/process.c (allocate_pty) [__sgi]: Remove SGI-specific code.
(create_process) [HAVE_PTYS]: Don't worry about IRIX.
* src/syntax.c (scan_sexps_forward): Remove obsolete comment.
* src/unexelf.c [__sgi]: Don't include <syms.h>.
(unexec) [__sgi]: Remove SGI-specific code.
| -rw-r--r-- | etc/MACHINES | 9 | ||||
| -rw-r--r-- | src/process.c | 9 | ||||
| -rw-r--r-- | src/syntax.c | 2 | ||||
| -rw-r--r-- | src/unexelf.c | 50 |
4 files changed, 2 insertions, 68 deletions
diff --git a/etc/MACHINES b/etc/MACHINES index 15ac91772e0..7f3c979c3f6 100644 --- a/etc/MACHINES +++ b/etc/MACHINES | |||
| @@ -101,15 +101,6 @@ the list at the end of this file. | |||
| 101 | ./configure CC='/usr/sfw/bin/gcc -m64' # GCC | 101 | ./configure CC='/usr/sfw/bin/gcc -m64' # GCC |
| 102 | ./configure CC='cc -m64' # Solaris Studio | 102 | ./configure CC='cc -m64' # Solaris Studio |
| 103 | 103 | ||
| 104 | ** Irix 6.5 | ||
| 105 | |||
| 106 | Emacs versions later than 24.4 will not compile on Irix by default. | ||
| 107 | (Note that SGI stopped supporting Irix in December 2013.) | ||
| 108 | Older versions of Emacs 24 (and 23?) also had problems on Irix. | ||
| 109 | It *may* be possible to build Emacs <= 24.4 on Irix 6.5 with an old | ||
| 110 | version (3.1) of gcc. Newer versions of gcc may not work. | ||
| 111 | See <http://bugs.gnu.org/9684>. | ||
| 112 | |||
| 113 | 104 | ||
| 114 | * Obsolete platforms | 105 | * Obsolete platforms |
| 115 | 106 | ||
diff --git a/src/process.c b/src/process.c index 49340b120ef..8ab73bd9ae6 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -690,11 +690,7 @@ allocate_pty (char pty_name[PTY_NAME_SIZE]) | |||
| 690 | if (faccessat (AT_FDCWD, pty_name, R_OK | W_OK, AT_EACCESS) != 0) | 690 | if (faccessat (AT_FDCWD, pty_name, R_OK | W_OK, AT_EACCESS) != 0) |
| 691 | { | 691 | { |
| 692 | emacs_close (fd); | 692 | emacs_close (fd); |
| 693 | # ifndef __sgi | ||
| 694 | continue; | 693 | continue; |
| 695 | # else | ||
| 696 | return -1; | ||
| 697 | # endif /* __sgi */ | ||
| 698 | } | 694 | } |
| 699 | setup_pty (fd); | 695 | setup_pty (fd); |
| 700 | return fd; | 696 | return fd; |
| @@ -1886,9 +1882,8 @@ create_process (Lisp_Object process, char **new_argv, Lisp_Object current_dir) | |||
| 1886 | /* Make the pty be the controlling terminal of the process. */ | 1882 | /* Make the pty be the controlling terminal of the process. */ |
| 1887 | #ifdef HAVE_PTYS | 1883 | #ifdef HAVE_PTYS |
| 1888 | /* First, disconnect its current controlling terminal. */ | 1884 | /* First, disconnect its current controlling terminal. */ |
| 1889 | /* We tried doing setsid only if pty_flag, but it caused | 1885 | if (pty_flag) |
| 1890 | process_set_signal to fail on SGI when using a pipe. */ | 1886 | setsid (); |
| 1891 | setsid (); | ||
| 1892 | /* Make the pty's terminal the controlling terminal. */ | 1887 | /* Make the pty's terminal the controlling terminal. */ |
| 1893 | if (pty_flag && forkin >= 0) | 1888 | if (pty_flag && forkin >= 0) |
| 1894 | { | 1889 | { |
diff --git a/src/syntax.c b/src/syntax.c index d463f7e93db..338dd854f22 100644 --- a/src/syntax.c +++ b/src/syntax.c | |||
| @@ -3196,8 +3196,6 @@ do { prev_from = from; \ | |||
| 3196 | && (c1 = FETCH_CHAR (from_byte), | 3196 | && (c1 = FETCH_CHAR (from_byte), |
| 3197 | syntax = SYNTAX_WITH_FLAGS (c1), | 3197 | syntax = SYNTAX_WITH_FLAGS (c1), |
| 3198 | SYNTAX_FLAGS_COMSTART_SECOND (syntax))) | 3198 | SYNTAX_FLAGS_COMSTART_SECOND (syntax))) |
| 3199 | /* Duplicate code to avoid a complex if-expression | ||
| 3200 | which causes trouble for the SGI compiler. */ | ||
| 3201 | { | 3199 | { |
| 3202 | /* Record the comment style we have entered so that only | 3200 | /* Record the comment style we have entered so that only |
| 3203 | the comment-end sequence of the same style actually | 3201 | the comment-end sequence of the same style actually |
diff --git a/src/unexelf.c b/src/unexelf.c index 748e7a42cfa..58c9244c3a5 100644 --- a/src/unexelf.c +++ b/src/unexelf.c | |||
| @@ -66,9 +66,6 @@ what you give them. Help stamp out software-hoarding! */ | |||
| 66 | #include <sys/elf_mips.h> | 66 | #include <sys/elf_mips.h> |
| 67 | #include <sym.h> | 67 | #include <sym.h> |
| 68 | #endif /* _SYSTYPE_SYSV */ | 68 | #endif /* _SYSTYPE_SYSV */ |
| 69 | #if __sgi | ||
| 70 | #include <syms.h> /* for HDRR declaration */ | ||
| 71 | #endif /* __sgi */ | ||
| 72 | 69 | ||
| 73 | #ifndef MAP_ANON | 70 | #ifndef MAP_ANON |
| 74 | #ifdef MAP_ANONYMOUS | 71 | #ifdef MAP_ANONYMOUS |
| @@ -498,53 +495,6 @@ unexec (const char *new_name, const char *old_name) | |||
| 498 | phdr->cbExtOffset += diff; | 495 | phdr->cbExtOffset += diff; |
| 499 | } | 496 | } |
| 500 | #endif /* __alpha__ || _SYSTYPE_SYSV */ | 497 | #endif /* __alpha__ || _SYSTYPE_SYSV */ |
| 501 | |||
| 502 | #if __sgi | ||
| 503 | /* Adjust the HDRR offsets in .mdebug and copy the | ||
| 504 | line data if it's in its usual 'hole' in the object. | ||
| 505 | Makes the new file debuggable with dbx. | ||
| 506 | patches up two problems: the absolute file offsets | ||
| 507 | in the HDRR record of .mdebug (see /usr/include/syms.h), and | ||
| 508 | the ld bug that gets the line table in a hole in the | ||
| 509 | elf file rather than in the .mdebug section proper. | ||
| 510 | David Anderson. davea@sgi.com Jan 16,1994. */ | ||
| 511 | if (strcmp (old_section_names + new_shdr->sh_name, ".mdebug") == 0 | ||
| 512 | && new_shdr->sh_offset - old_shdr->sh_offset != 0) | ||
| 513 | { | ||
| 514 | #define MDEBUGADJUST(__ct,__fileaddr) \ | ||
| 515 | if (n_phdrr->__ct > 0) \ | ||
| 516 | { \ | ||
| 517 | n_phdrr->__fileaddr += movement; \ | ||
| 518 | } | ||
| 519 | |||
| 520 | HDRR *o_phdrr = (HDRR *) ((byte *) old_base + old_shdr->sh_offset); | ||
| 521 | HDRR *n_phdrr = (HDRR *) ((byte *) new_base + new_shdr->sh_offset); | ||
| 522 | ptrdiff_t movement = new_shdr->sh_offset - old_shdr->sh_offset; | ||
| 523 | |||
| 524 | MDEBUGADJUST (idnMax, cbDnOffset); | ||
| 525 | MDEBUGADJUST (ipdMax, cbPdOffset); | ||
| 526 | MDEBUGADJUST (isymMax, cbSymOffset); | ||
| 527 | MDEBUGADJUST (ioptMax, cbOptOffset); | ||
| 528 | MDEBUGADJUST (iauxMax, cbAuxOffset); | ||
| 529 | MDEBUGADJUST (issMax, cbSsOffset); | ||
| 530 | MDEBUGADJUST (issExtMax, cbSsExtOffset); | ||
| 531 | MDEBUGADJUST (ifdMax, cbFdOffset); | ||
| 532 | MDEBUGADJUST (crfd, cbRfdOffset); | ||
| 533 | MDEBUGADJUST (iextMax, cbExtOffset); | ||
| 534 | /* The Line Section, being possible off in a hole of the object, | ||
| 535 | requires special handling. */ | ||
| 536 | if (n_phdrr->cbLine > 0) | ||
| 537 | { | ||
| 538 | n_phdrr->cbLineOffset += movement; | ||
| 539 | |||
| 540 | if (o_phdrr->cbLineOffset > (old_shdr->sh_offset | ||
| 541 | + old_shdr->sh_size)) | ||
| 542 | /* If not covered by section, it hasn't yet been copied. */ | ||
| 543 | memcpy (n_phdrr->cbLineOffset + new_base, | ||
| 544 | o_phdrr->cbLineOffset + old_base, n_phdrr->cbLine); | ||
| 545 | } | ||
| 546 | } | ||
| 547 | #endif /* __sgi */ | ||
| 548 | } | 498 | } |
| 549 | 499 | ||
| 550 | /* Update the symbol values of _edata and _end. */ | 500 | /* Update the symbol values of _edata and _end. */ |