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
feb60352
Commit
feb60352
authored
Feb 17, 1998
by
J"orn Rennecke
Committed by
Joern Rennecke
Feb 17, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix problems with last patch.
From-SVN: r18033
parent
beb31faa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
2 deletions
+19
-2
gcc/ChangeLog
+10
-0
gcc/stmt.c
+9
-2
No files found.
gcc/ChangeLog
View file @
feb60352
Tue Feb 17 21:17:30 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
* rtl.h (force_line_numbers, restore_line_number_status): Declare.
* emit-rtl.c (force_line_numbers, restore_line_number_status):
New functions.
* stmt.c (struct nesting): Replace seenlabel with line_number_status.
(expand_start_case): Adjust to this change.
(check_seenlabel): New function.
(pushcase, pushcase_range, expand_endcase): Use it.
Tue Feb 17 10:14:32 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
* i386.md (adddi3): Add =!r,0,0,X alternative.
...
...
gcc/stmt.c
View file @
feb60352
...
...
@@ -3895,8 +3895,6 @@ pushcase (value, converter, label, duplicate)
index_type
=
TREE_TYPE
(
case_stack
->
data
.
case_stmt
.
index_expr
);
nominal_type
=
case_stack
->
data
.
case_stmt
.
nominal_type
;
check_seenlabel
();
/* If the index is erroneous, avoid more problems: pretend to succeed. */
if
(
index_type
==
error_mark_node
)
return
0
;
...
...
@@ -3905,6 +3903,8 @@ pushcase (value, converter, label, duplicate)
if
(
value
!=
0
)
value
=
(
*
converter
)
(
nominal_type
,
value
);
check_seenlabel
();
/* Fail if this value is out of range for the actual type of the index
(which may be narrower than NOMINAL_TYPE). */
if
(
value
!=
0
&&
!
int_fits_type_p
(
value
,
index_type
))
...
...
@@ -4612,6 +4612,13 @@ expand_end_case (orig_index)
do_pending_stack_adjust
();
/* This might get an spurious warning in the presence of a syntax error;
it could be fixed by moving the call to check_seenlabel after the
check for error_mark_node, and copying the code of check_seenlabel that
deals with case_stack->data.case_stmt.line_number_status /
restore_line_number_status in front of the call to end_cleanup_deferral;
However, this might miss some useful warnings in the presence of
non-syntax errors. */
check_seenlabel
();
/* An ERROR_MARK occurs for various reasons including invalid data type. */
...
...
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