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
19ac2770
Commit
19ac2770
authored
Aug 19, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Declare __eprintf with attribute noreturn.
From-SVN: r10247
parent
cfeda197
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
gcc/assert.h
+5
-3
No files found.
gcc/assert.h
View file @
19ac2770
...
...
@@ -23,10 +23,12 @@
/* Defined in libgcc.a */
#ifdef __cplusplus
extern
"C"
{
extern
void
__eprintf
(
const
char
*
,
const
char
*
,
unsigned
,
const
char
*
);
extern
void
__eprintf
(
const
char
*
,
const
char
*
,
unsigned
,
const
char
*
)
__attribute__
((
noreturn
));
}
#else
extern
void
__eprintf
(
const
char
*
,
const
char
*
,
unsigned
,
const
char
*
);
extern
void
__eprintf
(
const
char
*
,
const
char
*
,
unsigned
,
const
char
*
)
__attribute__
((
noreturn
));
#endif
#define assert(expression) \
...
...
@@ -38,7 +40,7 @@ extern void __eprintf (const char *, const char *, unsigned, const char *);
#else
/* no __STDC__ and not C++; i.e. -traditional. */
extern
void
__eprintf
();
/* Defined in libgcc.a */
extern
void
__eprintf
()
__attribute__
((
noreturn
))
;
/* Defined in libgcc.a */
#define assert(expression) \
((void) ((expression) ? 0 : __assert (expression, __FILE__, __LINE__)))
...
...
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