aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDan Nicolaescu2010-04-23 15:14:14 -0700
committerDan Nicolaescu2010-04-23 15:14:14 -0700
commit03cbbcb8e8b107b90cad3dbef1ef7c051c384735 (patch)
treec8d7721413331cc7e6278a6aff49f6505b474428 /src
parent1ad4cc3d07cf1a155522f2104a43af1aeaef7ae9 (diff)
downloademacs-03cbbcb8e8b107b90cad3dbef1ef7c051c384735.tar.gz
emacs-03cbbcb8e8b107b90cad3dbef1ef7c051c384735.zip
Simplify m/intel386.h.
* m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only user: ecrt0.c. (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused. (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to the only user: s/unixware.h. * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition from m/intel386.h. * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions moved here from m/intel386.h.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog11
-rw-r--r--src/ecrt0.c11
-rw-r--r--src/m/intel386.h37
-rw-r--r--src/s/unixware.h11
4 files changed, 23 insertions, 47 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index b5464d9f8d4..b88ea4108ae 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,16 @@
12010-04-23 Dan Nicolaescu <dann@ics.uci.edu> 12010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2 2
3 Simplify m/intel386.h.
4 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
5 user: ecrt0.c.
6 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
7 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
8 the only user: s/unixware.h.
9 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
10 from m/intel386.h.
11 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
12 moved here from m/intel386.h.
13
3 * m/mips.h: Remove #if 0 code. 14 * m/mips.h: Remove #if 0 code.
4 15
52010-04-23 Eli Zaretskii <eliz@gnu.org> 162010-04-23 Eli Zaretskii <eliz@gnu.org>
diff --git a/src/ecrt0.c b/src/ecrt0.c
index 0d7d26d3685..458771319c7 100644
--- a/src/ecrt0.c
+++ b/src/ecrt0.c
@@ -61,15 +61,7 @@ int data_start = 0;
61 61
62char **environ; 62char **environ;
63 63
64#ifndef static
65/* On systems where the static storage class is usable, this function
66 should be declared as static. Otherwise, the static keyword has
67 been defined to be something else, and code for those systems must
68 take care of this declaration appropriately. */
69static start1 (); 64static start1 ();
70#endif
71
72#ifdef CRT0_DUMMIES
73 65
74/* Define symbol "start": here; some systems want that symbol. */ 66/* Define symbol "start": here; some systems want that symbol. */
75asm(" .text "); 67asm(" .text ");
@@ -83,7 +75,7 @@ _start ()
83} 75}
84 76
85static 77static
86start1 (CRT0_DUMMIES argc, xargv) 78start1 (bogus_fp, argc, xargv)
87 int argc; 79 int argc;
88 char *xargv; 80 char *xargv;
89{ 81{
@@ -98,7 +90,6 @@ start1 (CRT0_DUMMIES argc, xargv)
98 and optimize it out. */ 90 and optimize it out. */
99 (void) &start1; 91 (void) &start1;
100} 92}
101#endif /* CRT0_DUMMIES */
102 93
103/* arch-tag: 4025c2fb-d6b1-4d29-b1b6-8100b6bd1e74 94/* arch-tag: 4025c2fb-d6b1-4d29-b1b6-8100b6bd1e74
104 (do not change this comment) */ 95 (do not change this comment) */
diff --git a/src/m/intel386.h b/src/m/intel386.h
index dc50d5ea6a2..1bf3462d2ad 100644
--- a/src/m/intel386.h
+++ b/src/m/intel386.h
@@ -44,43 +44,6 @@ NOTE-END */
44 44
45/* #define NO_ARG_ARRAY */ 45/* #define NO_ARG_ARRAY */
46 46
47/* crt0.c, if it is used, should use the i386-bsd style of entry.
48 with no extra dummy args. On USG and XENIX,
49 NO_REMAP says this isn't used. */
50
51#define CRT0_DUMMIES bogus_fp,
52
53#ifdef SOLARIS2
54/* Data type of load average, as read out of kmem. */
55#define LOAD_AVE_TYPE long
56
57/* Convert that into an integer that is 100 for a load average of 1.0 */
58/* This is totally uncalibrated. */
59#define LOAD_AVE_CVT(x) ((int) (((double) (x)) * 100.0 / FSCALE))
60
61/* J.W.Hawtin@lut.ac.uk say Solaris 2.4 as well as Solaris 2.1 on X86
62 requires -lkvm as well.
63 And handa@etl.gov.jp says that -lkvm needs -llelf, at least on 2.5. */
64#define LIBS_MACHINE -lkvm -lelf
65
66/* configure thinks solaris X86 has gethostname, but it does not work,
67 so undefine it. */
68#undef HAVE_GETHOSTNAME
69
70#else /* not SOLARIS2 */
71#ifdef USG5_4 /* Older USG systems do not support the load average. */
72/* Data type of load average, as read out of kmem. */
73
74#define LOAD_AVE_TYPE long
75
76/* Convert that into an integer that is 100 for a load average of 1.0 */
77/* This is totally uncalibrated. */
78
79#define LOAD_AVE_CVT(x) ((int) (((double) (x)) * 100.0 / FSCALE))
80#define FSCALE 256.0
81#endif /* USG5_4 */
82#endif /* not SOLARIS2 */
83
84#ifdef USG 47#ifdef USG
85#define TEXT_START 0 48#define TEXT_START 0
86#endif /* USG */ 49#endif /* USG */
diff --git a/src/s/unixware.h b/src/s/unixware.h
index 9fedb426868..27fd41b7416 100644
--- a/src/s/unixware.h
+++ b/src/s/unixware.h
@@ -67,6 +67,17 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
67 (do not change this comment) */ 67 (do not change this comment) */
68 68
69 69
70/* Data type of load average, as read out of kmem. */
71
72#define LOAD_AVE_TYPE long
73
74/* Convert that into an integer that is 100 for a load average of 1.0 */
75/* This is totally uncalibrated. */
76
77#define LOAD_AVE_CVT(x) ((int) (((double) (x)) * 100.0 / FSCALE))
78#define FSCALE 256.0
79
80
70#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__ptr - (FILE)->__base) 81#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__ptr - (FILE)->__base)
71 82
72/* arch-tag: d82e92e7-9443-4a60-a581-7f293cbae8a3 83/* arch-tag: d82e92e7-9443-4a60-a581-7f293cbae8a3