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
241365d3
Commit
241365d3
authored
Feb 02, 1997
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(init_check_module_version): Replace call to abort function with call
to objc_error function. From-SVN: r13588
parent
b2948281
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
gcc/objc/init.c
+13
-12
No files found.
gcc/objc/init.c
View file @
241365d3
/* GNU Objective C Runtime initialization
Copyright (C) 1993, 1995, 1996 Free Software Foundation, Inc.
Copyright (C) 1993, 1995, 1996
, 1997
Free Software Foundation, Inc.
Contributed by Kresten Krab Thorup
This file is part of GNU CC.
...
...
@@ -314,15 +314,17 @@ static void init_check_module_version(Module_t module)
{
if
((
module
->
version
!=
OBJC_VERSION
)
||
(
module
->
size
!=
sizeof
(
Module
)))
{
fprintf
(
stderr
,
"Module %s version %d doesn't match runtime %d
\n
"
,
module
->
name
,
(
int
)
module
->
version
,
OBJC_VERSION
);
int
code
;
if
(
module
->
version
>
OBJC_VERSION
)
fprintf
(
stderr
,
"Runtime (libobjc.a) is out of date
\n
"
)
;
code
=
OBJC_ERR_OBJC_VERSION
;
else
if
(
module
->
version
<
OBJC_VERSION
)
fprintf
(
stderr
,
"Compiler (gcc) is out of date
\n
"
)
;
code
=
OBJC_ERR_GCC_VERSION
;
else
fprintf
(
stderr
,
"Objective C internal error -- bad Module size
\n
"
);
abort
();
code
=
OBJC_ERR_MODULE_SIZE
;
objc_error
(
nil
,
code
,
"Module %s version %d doesn't match runtime %d
\n
"
,
module
->
name
,
(
int
)
module
->
version
,
OBJC_VERSION
);
}
}
...
...
@@ -364,11 +366,10 @@ __objc_init_protocols (struct objc_protocol_list* protos)
}
else
if
(
protos
->
list
[
i
]
->
class_pointer
!=
proto_class
)
{
fprintf
(
stderr
,
"Version %d doesn't match runtime protocol version %d
\n
"
,
(
int
)((
char
*
)
protos
->
list
[
i
]
->
class_pointer
-
(
char
*
)
0
),
PROTOCOL_VERSION
);
abort
();
objc_error
(
nil
,
OBJC_ERR_PROTOCOL_VERSION
,
"Version %d doesn't match runtime protocol version %d
\n
"
,
(
int
)((
char
*
)
protos
->
list
[
i
]
->
class_pointer
-
(
char
*
)
0
),
PROTOCOL_VERSION
);
}
}
...
...
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