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
5326cd3d
Commit
5326cd3d
authored
Nov 26, 2002
by
Nathan Sidwell
Committed by
Nathan Sidwell
Nov 26, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* c-decl.c: (start_struct): Commonize flag setting.
From-SVN: r59527
parent
0412a4d4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
gcc/ChangeLog
+4
-0
gcc/c-decl.c
+6
-9
No files found.
gcc/ChangeLog
View file @
5326cd3d
2002
-
11
-
26
Nathan
Sidwell
<
nathan
@codesourcery
.
com
>
*
c
-
decl
.
c
:
(
start_struct
)
:
Commonize
flag
setting
.
2002
-
11
-
26
Jason
Thorpe
<
thorpej
@wasabisystems
.
com
>
*
config
/
rs6000
/
rs6000
.
h
(
RS6000_CPU_CPP_ENDIAN_BUILTINS
)
:
New
.
...
...
gcc/c-decl.c
View file @
5326cd3d
...
...
@@ -4954,25 +4954,22 @@ start_struct (code, name)
ref
=
lookup_tag
(
code
,
name
,
current_binding_level
,
1
);
if
(
ref
&&
TREE_CODE
(
ref
)
==
code
)
{
C_TYPE_BEING_DEFINED
(
ref
)
=
1
;
TYPE_PACKED
(
ref
)
=
flag_pack_struct
;
if
(
TYPE_FIELDS
(
ref
))
{
if
(
code
==
UNION_TYPE
)
error
(
"redefinition of `union %s'"
,
IDENTIFIER_POINTER
(
name
));
error
(
"redefinition of `union %s'"
,
IDENTIFIER_POINTER
(
name
));
else
error
(
"redefinition of `struct %s'"
,
IDENTIFIER_POINTER
(
name
));
error
(
"redefinition of `struct %s'"
,
IDENTIFIER_POINTER
(
name
));
}
return
ref
;
}
else
{
/* Otherwise create a forward-reference just so the tag is in scope. */
ref
=
make_node
(
code
);
pushtag
(
name
,
ref
);
}
C_TYPE_BEING_DEFINED
(
ref
)
=
1
;
TYPE_PACKED
(
ref
)
=
flag_pack_struct
;
return
ref
;
...
...
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