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
cf6d9b9c
Commit
cf6d9b9c
authored
Feb 13, 1993
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(build_indirect_ref): If arg is void *, just warn.
From-SVN: r3469
parent
ee791cc3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
gcc/c-typeck.c
+3
-2
No files found.
gcc/c-typeck.c
View file @
cf6d9b9c
...
@@ -1119,12 +1119,13 @@ build_indirect_ref (ptr, errorstring)
...
@@ -1119,12 +1119,13 @@ build_indirect_ref (ptr, errorstring)
register
tree
ref
=
build1
(
INDIRECT_REF
,
register
tree
ref
=
build1
(
INDIRECT_REF
,
TYPE_MAIN_VARIANT
(
t
),
pointer
);
TYPE_MAIN_VARIANT
(
t
),
pointer
);
if
(
TREE_CODE
(
t
)
==
VOID_TYPE
if
(
TYPE_SIZE
(
t
)
==
0
&&
TREE_CODE
(
t
)
!=
ARRAY_TYPE
)
||
(
TYPE_SIZE
(
t
)
==
0
&&
TREE_CODE
(
t
)
!=
ARRAY_TYPE
))
{
{
error
(
"dereferencing pointer to incomplete type"
);
error
(
"dereferencing pointer to incomplete type"
);
return
error_mark_node
;
return
error_mark_node
;
}
}
if
(
TREE_CODE
(
t
)
==
VOID_TYPE
)
warning
(
"dereferencing `void *' pointer"
);
/* We *must* set TREE_READONLY when dereferencing a pointer to const,
/* We *must* set TREE_READONLY when dereferencing a pointer to const,
so that we get the proper error message if the result is used
so that we get the proper error message if the result is used
...
...
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