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
700942a0
Commit
700942a0
authored
Feb 27, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(declare_hidden_char_array): Build new type if warn_larger_than.
From-SVN: r6654
parent
739d15ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
gcc/c-common.c
+3
-3
No files found.
gcc/c-common.c
View file @
700942a0
...
...
@@ -67,13 +67,13 @@ declare_hidden_char_array (name, value)
int
vlen
;
/* If the default size of char arrays isn't big enough for the name,
make a bigger one. */
or if we want to give warnings for large objects,
make a bigger one. */
vlen
=
strlen
(
value
)
+
1
;
type
=
char_array_type_node
;
if
(
TREE_INT_CST_LOW
(
TYPE_MAX_VALUE
(
TREE_TYPE
(
type
)))
<
vlen
)
if
(
TREE_INT_CST_LOW
(
TYPE_MAX_VALUE
(
TREE_TYPE
(
type
)))
<
vlen
||
warn_larger_than
)
type
=
build_array_type
(
char_type_node
,
build_index_type
(
build_int_2
(
vlen
,
0
)));
push_obstacks_nochange
();
decl
=
build_decl
(
VAR_DECL
,
get_identifier
(
name
),
type
);
TREE_STATIC
(
decl
)
=
1
;
...
...
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