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
96571883
Commit
96571883
authored
Sep 07, 1992
by
Brendan Kehoe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved constant_expression_warning into c-common.c.
From-SVN: r2076
parent
2a23183e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
gcc/c-common.c
+10
-0
gcc/c-typeck.c
+0
-10
No files found.
gcc/c-common.c
View file @
96571883
...
...
@@ -281,6 +281,16 @@ decl_attributes (decl, attributes)
}
}
/* Print a warning if a constant expression had overflow in folding. */
void
constant_expression_warning
(
value
)
tree
value
;
{
if
(
TREE_CODE
(
value
)
==
INTEGER_CST
&&
TREE_CONSTANT_OVERFLOW
(
value
))
pedwarn
(
"overflow in constant expression"
);
}
void
c_expand_expr_stmt
(
expr
)
tree
expr
;
...
...
gcc/c-typeck.c
View file @
96571883
...
...
@@ -785,16 +785,6 @@ c_alignof (type)
return
size_int
(
TYPE_ALIGN
(
type
)
/
BITS_PER_UNIT
);
}
/* Print a warning if a constant expression had overflow in folding. */
void
constant_expression_warning
(
value
)
tree
value
;
{
if
(
TREE_CODE
(
value
)
==
INTEGER_CST
&&
TREE_CONSTANT_OVERFLOW
(
value
))
pedwarn
(
"overflow in constant expression"
);
}
/* Implement the __alignof keyword: Return the minimum required
alignment of EXPR, measured in bytes. For VAR_DECL's and
...
...
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