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
ea0f786b
Commit
ea0f786b
authored
May 09, 1999
by
Craig Burley
Committed by
Craig Burley
May 09, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle ERROR_MARK input
From-SVN: r26848
parent
418a84c2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
0 deletions
+21
-0
gcc/ChangeLog
+5
-0
gcc/c-typeck.c
+3
-0
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gcc.dg/990506-0.c
+9
-0
No files found.
gcc/ChangeLog
View file @
ea0f786b
Sun
May
9
22
:
51
:
04
1999
Craig
Burley
<
craig
@jcb
-
sc
.
com
>
Fix
gcc
.
dg
/
990506
-
0
.
c
:
*
c
-
typeck
.
c
(
require_complete_type
)
:
Handle
ERROR_MARK
input
.
Sun
May
9
13
:
19
:
12
1999
Jeffrey
A
Law
(
law
@cygnus
.
com
)
*
gcse
.
c
(
cprop_insn
)
:
Do
not
try
to
simplify
a
simple
jump
.
...
...
gcc/c-typeck.c
View file @
ea0f786b
...
...
@@ -83,6 +83,9 @@ require_complete_type (value)
{
tree
type
=
TREE_TYPE
(
value
);
if
(
TREE_CODE
(
value
)
==
ERROR_MARK
)
return
error_mark_node
;
/* First, detect a valid value with a complete type. */
if
(
TYPE_SIZE
(
type
)
!=
0
&&
type
!=
void_type_node
)
...
...
gcc/testsuite/ChangeLog
View file @
ea0f786b
1999-05-08 Craig Burley <craig@jcb-sc.com>
* gcc.dg/990506-0.c: New test.
1999-05-08 Richard Henderson <rth@cygnus.com>
* g++.old-deja/g++.benjamin/p12475.C: Use LONG_MAX to find
...
...
gcc/testsuite/gcc.dg/990506-0.c
0 → 100644
View file @
ea0f786b
/* Verify that a diagnostic is issued without crashing due to
--enable-checking catching a bug in the C front end. */
/* { dg-do compile } */
x
()
{
foo
(
i
);
/* { dg-error "undeclared" "undeclared-variable message" { target native } { 6 } } */
/* { dg-error "function it appears in" "reminder message" { target native } { 6 } } */
}
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