OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b24cf1b
)
(process_init_element): Treat string constants specially
author
rms
<rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 31 Jul 1993 20:13:36 +0000
(20:13 +0000)
committer
rms
<rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 31 Jul 1993 20:13:36 +0000
(20:13 +0000)
only for arrays of integers.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@5048
138bc75d
-0d04-0410-961f-
82ee72b054a4
gcc/c-typeck.c
patch
|
blob
|
history
diff --git
a/gcc/c-typeck.c
b/gcc/c-typeck.c
index
2e0d0f6
..
9f2a8bc
100644
(file)
--- a/
gcc/c-typeck.c
+++ b/
gcc/c-typeck.c
@@
-6005,6
+6005,7
@@
process_init_element (value)
char x[] = {"foo"}; */
if (string_flag
&& TREE_CODE (constructor_type) == ARRAY_TYPE
+ && TREE_CODE (TREE_TYPE (constructor_type)) == INTEGER_TYPE
&& integer_zerop (constructor_unfilled_index))
{
constructor_stack->replacement_value = value;