Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
945388ed
Commit
945388ed
authored
Jun 02, 1994
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[emacs]: Block input around the garbage reclamation.
Include blockinput.h. From-SVN: r7422
parent
119af78a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
gcc/alloca.c
+12
-0
No files found.
gcc/alloca.c
View file @
945388ed
...
@@ -29,6 +29,10 @@
...
@@ -29,6 +29,10 @@
#endif
#endif
#endif
#endif
#ifdef emacs
#include "blockinput.h"
#endif
/* If compiling with GCC 2, this file's not needed. */
/* If compiling with GCC 2, this file's not needed. */
#if !defined (__GNUC__) || __GNUC__ < 2
#if !defined (__GNUC__) || __GNUC__ < 2
...
@@ -176,6 +180,10 @@ alloca (size)
...
@@ -176,6 +180,10 @@ alloca (size)
{
{
register
header
*
hp
;
/* Traverses linked list. */
register
header
*
hp
;
/* Traverses linked list. */
#ifdef emacs
BLOCK_INPUT
;
#endif
for
(
hp
=
last_alloca_header
;
hp
!=
NULL
;)
for
(
hp
=
last_alloca_header
;
hp
!=
NULL
;)
if
((
STACK_DIR
>
0
&&
hp
->
h
.
deep
>
depth
)
if
((
STACK_DIR
>
0
&&
hp
->
h
.
deep
>
depth
)
||
(
STACK_DIR
<
0
&&
hp
->
h
.
deep
<
depth
))
||
(
STACK_DIR
<
0
&&
hp
->
h
.
deep
<
depth
))
...
@@ -190,6 +198,10 @@ alloca (size)
...
@@ -190,6 +198,10 @@ alloca (size)
break
;
/* Rest are not deeper. */
break
;
/* Rest are not deeper. */
last_alloca_header
=
hp
;
/* -> last valid storage. */
last_alloca_header
=
hp
;
/* -> last valid storage. */
#ifdef emacs
UNBLOCK_INPUT
;
#endif
}
}
if
(
size
==
0
)
if
(
size
==
0
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment