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
0faa382f
Commit
0faa382f
authored
16 years ago
by
agoncharov
Browse files
Options
Downloads
Patches
Plain Diff
Get rid of the annoying gcc warning: "dereferencing type-punned
pointer will break strict-aliasing rules".
parent
0a3b5441
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lisp/FreeBSD-os.c
+26
-11
26 additions, 11 deletions
lisp/FreeBSD-os.c
with
26 additions
and
11 deletions
lisp/FreeBSD-os.c
+
26
−
11
View file @
0faa382f
...
...
@@ -12,7 +12,7 @@
* Much hacked by Paul Werkowski
* GENCGC support by Douglas Crosher, 1996, 1997.
*
* $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/lisp/FreeBSD-os.c,v 1.2
4
2008/
09/16 08:52:31 cshapi
ro Exp $
* $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/lisp/FreeBSD-os.c,v 1.2
5
2008/
12/07 03:14:21 agoncha
ro
v
Exp $
*
*/
...
...
@@ -48,31 +48,46 @@ os_init(void)
unsigned
long
*
os_sigcontext_reg
(
ucontext_t
*
scp
,
int
index
)
{
__register_t
*
rv
;
switch
(
index
)
{
case
0
:
return
(
unsigned
long
*
)
&
scp
->
uc_mcontext
.
mc_eax
;
rv
=
&
scp
->
uc_mcontext
.
mc_eax
;
break
;
case
2
:
return
(
unsigned
long
*
)
&
scp
->
uc_mcontext
.
mc_ecx
;
rv
=
&
scp
->
uc_mcontext
.
mc_ecx
;
break
;
case
4
:
return
(
unsigned
long
*
)
&
scp
->
uc_mcontext
.
mc_edx
;
rv
=
&
scp
->
uc_mcontext
.
mc_edx
;
break
;
case
6
:
return
(
unsigned
long
*
)
&
scp
->
uc_mcontext
.
mc_ebx
;
rv
=
&
scp
->
uc_mcontext
.
mc_ebx
;
break
;
case
8
:
return
(
unsigned
long
*
)
&
scp
->
uc_mcontext
.
mc_esp
;
rv
=
&
scp
->
uc_mcontext
.
mc_esp
;
break
;
case
10
:
return
(
unsigned
long
*
)
&
scp
->
uc_mcontext
.
mc_ebp
;
rv
=
&
scp
->
uc_mcontext
.
mc_ebp
;
break
;
case
12
:
return
(
unsigned
long
*
)
&
scp
->
uc_mcontext
.
mc_esi
;
rv
=
&
scp
->
uc_mcontext
.
mc_esi
;
break
;
case
14
:
return
(
unsigned
long
*
)
&
scp
->
uc_mcontext
.
mc_edi
;
rv
=
&
scp
->
uc_mcontext
.
mc_edi
;
break
;
default:
rv
=
NULL
;
}
return
NULL
;
/* Pre-cast to (void *), to avoid the compiler warning:
* FreeBSD-os.c:72: warning: dereferencing type-punned pointer will break strict-aliasing rules
*/
return
(
unsigned
long
*
)
(
void
*
)
rv
;
}
unsigned
long
*
os_sigcontext_pc
(
ucontext_t
*
scp
)
{
return
(
unsigned
long
*
)
&
scp
->
uc_mcontext
.
mc_eip
;
return
(
unsigned
long
*
)
(
void
*
)
&
scp
->
uc_mcontext
.
mc_eip
;
}
unsigned
char
*
...
...
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