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
f0cdf2b2
Commit
f0cdf2b2
authored
Nov 10, 1992
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(main): Unlimit stack size.
From-SVN: r2737
parent
5ce402b7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
gcc/genattrtab.c
+19
-0
No files found.
gcc/genattrtab.c
View file @
f0cdf2b2
...
...
@@ -101,6 +101,13 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "insn-config.h"
/* For REGISTER_CONSTRAINTS */
#include <stdio.h>
#ifndef VMS
#ifndef USG
#include <sys/time.h>
#include <sys/resource.h>
#endif
#endif
static
struct
obstack
obstack
,
obstack1
,
obstack2
;
struct
obstack
*
rtl_obstack
=
&
obstack
;
struct
obstack
*
hash_obstack
=
&
obstack1
;
...
...
@@ -5464,6 +5471,18 @@ main (argc, argv)
rtx
tem
;
int
i
;
#ifdef RLIMIT_STACK
/* Get rid of any avoidable limit on stack size. */
{
struct
rlimit
rlim
;
/* Set the stack limit huge so that alloca does not fail. */
getrlimit
(
RLIMIT_STACK
,
&
rlim
);
rlim
.
rlim_cur
=
rlim
.
rlim_max
;
setrlimit
(
RLIMIT_STACK
,
&
rlim
);
}
#endif
/* RLIMIT_STACK defined */
obstack_init
(
rtl_obstack
);
obstack_init
(
hash_obstack
);
obstack_init
(
temp_obstack
);
...
...
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