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
11433f42
Commit
11433f42
authored
Feb 01, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(grokdeclarator): `volatile' function warning corrected to read
`noreturn' function warning. From-SVN: r6457
parent
4aea22ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
gcc/c-decl.c
+3
-3
No files found.
gcc/c-decl.c
View file @
11433f42
/* Process declarations and variables for C compiler.
Copyright (C) 1988, 1992, 1993 Free Software Foundation, Inc.
Copyright (C) 1988, 1992, 1993
, 1994
Free Software Foundation, Inc.
This file is part of GNU CC.
...
...
@@ -4636,7 +4636,7 @@ grokdeclarator (declarator, declspecs, decl_context, initialized)
if
(
volatilep
&&
TREE_TYPE
(
TREE_TYPE
(
decl
))
!=
void_type_node
)
warning
(
"
volatile
function returns non-void value"
);
warning
(
"
`noreturn'
function returns non-void value"
);
if
(
extern_ref
)
DECL_EXTERNAL
(
decl
)
=
1
;
...
...
@@ -6481,7 +6481,7 @@ finish_function (nested)
current_function_returns_null
|=
can_reach_end
;
if
(
TREE_THIS_VOLATILE
(
fndecl
)
&&
current_function_returns_null
)
warning
(
"`
volatile
' function does return"
);
warning
(
"`
noreturn
' function does return"
);
else
if
(
warn_return_type
&&
can_reach_end
&&
TYPE_MAIN_VARIANT
(
TREE_TYPE
(
TREE_TYPE
(
fndecl
)))
!=
void_type_node
)
/* If this function returns non-void and control can drop through,
...
...
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