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
2bc4b682
Commit
2bc4b682
authored
Dec 17, 2010
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't split stack in bytes.IndexByte.
From-SVN: r167971
parent
b5343013
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
libgo/go/bytes/indexbyte.c
+5
-3
No files found.
libgo/go/bytes/indexbyte.c
View file @
2bc4b682
...
...
@@ -8,11 +8,13 @@
#include "array.h"
/* This is in C so that the compiler can optimize it
appropriately. */
/* This is in C so that the compiler can optimize it appropriately.
We deliberately don't split the stack in case it does call the
library function, which shouldn't need much stack space. */
int
IndexByte
(
struct
__go_open_array
,
char
)
asm
(
"libgo_bytes.bytes.IndexByte"
);
asm
(
"libgo_bytes.bytes.IndexByte"
)
__attribute__
((
no_split_stack
));
int
IndexByte
(
struct
__go_open_array
s
,
char
b
)
...
...
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