Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
cmucl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Carl Shapiro
cmucl
Commits
f4ccaa45
Commit
f4ccaa45
authored
2 years ago
by
Raymond Toy
Browse files
Options
Downloads
Patches
Plain Diff
Fix
#122
: gcc 11 can't build cmucl
parent
ca3deab2
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/lisp/Config.x86_linux
+1
-1
1 addition, 1 deletion
src/lisp/Config.x86_linux
src/lisp/Config.x86_linux_clang
+1
-1
1 addition, 1 deletion
src/lisp/Config.x86_linux_clang
src/lisp/Linux-os.c
+4
-0
4 additions, 0 deletions
src/lisp/Linux-os.c
src/lisp/x86-lispregs.h
+2
-1
2 additions, 1 deletion
src/lisp/x86-lispregs.h
with
8 additions
and
3 deletions
src/lisp/Config.x86_linux
+
1
−
1
View file @
f4ccaa45
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
include
Config.x86_common
include
Config.x86_common
CFLAGS
+=
$(
COPT
)
CFLAGS
+=
$(
COPT
)
CPPFLAGS
+=
-m32
-D__NO_CTYPE
-D_GNU_SOURCE
CPPFLAGS
+=
-m32
-D__NO_CTYPE
CFLAGS
+=
-rdynamic
-march
=
pentium4
-mfpmath
=
sse
-mtune
=
generic
CFLAGS
+=
-rdynamic
-march
=
pentium4
-mfpmath
=
sse
-mtune
=
generic
UNDEFSYMPATTERN
=
-Xlinker
-u
-Xlinker
&
UNDEFSYMPATTERN
=
-Xlinker
-u
-Xlinker
&
...
...
This diff is collapsed.
Click to expand it.
src/lisp/Config.x86_linux_clang
+
1
−
1
View file @
f4ccaa45
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
include
Config.x86_common
include
Config.x86_common
CC
=
clang
CC
=
clang
CPPFLAGS
+=
-m32
-D__NO_CTYPE
-D_GNU_SOURCE
CPPFLAGS
+=
-m32
-D__NO_CTYPE
CFLAGS
+=
$(
COPT
)
CFLAGS
+=
$(
COPT
)
# Allow sse2 instructions (-msse2); and tune for pentium4
# Allow sse2 instructions (-msse2); and tune for pentium4
...
...
This diff is collapsed.
Click to expand it.
src/lisp/Linux-os.c
+
4
−
0
View file @
f4ccaa45
...
@@ -17,6 +17,8 @@
...
@@ -17,6 +17,8 @@
*
*
*/
*/
#define _GNU_SOURCE
/* for reg_* constants in uc_mcontext.gregs */
#include
<signal.h>
#include
<stdio.h>
#include
<stdio.h>
#include
<sys/param.h>
#include
<sys/param.h>
#include
<sys/file.h>
#include
<sys/file.h>
...
@@ -198,6 +200,8 @@ os_sigcontext_reg(ucontext_t *scp, int offset)
...
@@ -198,6 +200,8 @@ os_sigcontext_reg(ucontext_t *scp, int offset)
return
(
unsigned
long
*
)
&
scp
->
uc_mcontext
.
gregs
[
REG_ESI
];
return
(
unsigned
long
*
)
&
scp
->
uc_mcontext
.
gregs
[
REG_ESI
];
case
14
:
case
14
:
return
(
unsigned
long
*
)
&
scp
->
uc_mcontext
.
gregs
[
REG_EDI
];
return
(
unsigned
long
*
)
&
scp
->
uc_mcontext
.
gregs
[
REG_EDI
];
case
16
:
return
(
unsigned
long
*
)
&
scp
->
uc_mcontext
.
gregs
[
REG_EFL
];
}
}
return
NULL
;
return
NULL
;
}
}
...
...
This diff is collapsed.
Click to expand it.
src/lisp/x86-lispregs.h
+
2
−
1
View file @
f4ccaa45
...
@@ -30,6 +30,7 @@
...
@@ -30,6 +30,7 @@
#define reg_EBP REG(10)
#define reg_EBP REG(10)
#define reg_ESI REG(12)
#define reg_ESI REG(12)
#define reg_EDI REG(14)
#define reg_EDI REG(14)
#define reg_EFL REG(16)
#define reg_SP reg_ESP
#define reg_SP reg_ESP
#define reg_FP reg_EBP
#define reg_FP reg_EBP
...
@@ -60,7 +61,7 @@
...
@@ -60,7 +61,7 @@
#define SC_EFLAGS(sc) ((sc)->uc_mcontext->ss.eflags)
#define SC_EFLAGS(sc) ((sc)->uc_mcontext->ss.eflags)
#endif
#endif
#elif defined(__linux__)
#elif defined(__linux__)
#define SC_EFLAGS(sc)
((sc)->uc_mcontext.gregs[REG
_EFL
]
)
#define SC_EFLAGS(sc)
SC_REG(sc, reg
_EFL)
#elif defined(__NetBSD__)
#elif defined(__NetBSD__)
#define SC_EFLAGS(sc) ((sc)->uc_mcontext.__gregs[_REG_EFL])
#define SC_EFLAGS(sc) ((sc)->uc_mcontext.__gregs[_REG_EFL])
#elif defined(SOLARIS)
#elif defined(SOLARIS)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment