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
26b3c423
Commit
26b3c423
authored
May 17, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
From-SVN: r1005
parent
98f21a70
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletions
+15
-1
gcc/c-typeck.c
+15
-1
No files found.
gcc/c-typeck.c
View file @
26b3c423
...
...
@@ -782,6 +782,17 @@ c_alignof (type)
return
size_int
(
TYPE_ALIGN
(
type
)
/
BITS_PER_UNIT
);
}
/* Print a warning if a constant expression had overflow in folding.
This doesn't really work--it is waiting for changes in fold. */
void
constant_expression_warning
(
value
)
tree
value
;
{
if
(
TREE_CODE
(
value
)
==
NON_LVALUE_EXPR
&&
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
...
...
@@ -3013,7 +3024,7 @@ build_unary_op (code, xarg, noconvert)
return
error_mark_node
;
/* Report a read-only lvalue. */
if
(
T
YPE_READONLY
(
TREE_TYPE
(
arg
)
))
if
(
T
REE_READONLY
(
arg
))
readonly_warning
(
arg
,
((
code
==
PREINCREMENT_EXPR
||
code
==
POSTINCREMENT_EXPR
)
...
...
@@ -4203,6 +4214,9 @@ store_init_value (decl, init)
}
#endif
/* ANSI wants warnings about out-of-range constant initializers. */
constant_expression_warning
(
value
);
DECL_INITIAL
(
decl
)
=
value
;
}
...
...
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