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
55b21c7a
Commit
55b21c7a
authored
Feb 28, 2011
by
Richard Frith-Macdonald
Committed by
Nicola Pero
Feb 28, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed critical typo in Objective-C runtime garbage collection code
From-SVN: r170561
parent
544a301e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
libobjc/ChangeLog
+6
-0
libobjc/gc.c
+7
-3
No files found.
libobjc/ChangeLog
View file @
55b21c7a
2011-02-28 Richard Frith-Macdonald <rfm@gnu.org>
PR libobjc/47922
* gc.c (class_ivar_set_gcinvisible): Use _C_GCINVISIBLE instead of
a hardcoded "!".
2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* configure: Regenerate.
* configure: Regenerate.
...
...
libobjc/gc.c
View file @
55b21c7a
...
@@ -422,11 +422,15 @@ class_ivar_set_gcinvisible (Class class, const char *ivarname,
...
@@ -422,11 +422,15 @@ class_ivar_set_gcinvisible (Class class, const char *ivarname,
/* The variable is gc visible so we make it gc_invisible. */
/* The variable is gc visible so we make it gc_invisible. */
new_type
=
objc_malloc
(
strlen
(
ivar
->
ivar_type
)
+
2
);
new_type
=
objc_malloc
(
strlen
(
ivar
->
ivar_type
)
+
2
);
/* Copy the variable name. */
len
=
(
type
-
ivar
->
ivar_type
);
len
=
(
type
-
ivar
->
ivar_type
);
memcpy
(
new_type
,
ivar
->
ivar_type
,
len
);
memcpy
(
new_type
,
ivar
->
ivar_type
,
len
);
new_type
[
len
]
=
0
;
/* Add '!'. */
strcat
(
new_type
,
"!"
);
new_type
[
len
++
]
=
_C_GCINVISIBLE
;
strcat
(
new_type
,
type
);
/* Copy the original types. */
strcpy
(
new_type
+
len
,
type
);
ivar
->
ivar_type
=
new_type
;
ivar
->
ivar_type
=
new_type
;
}
}
...
...
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