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
eb9ec0d4
Commit
eb9ec0d4
authored
Sep 24, 2003
by
Rainer Orth
Committed by
Rainer Orth
Sep 24, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* class.c (build_utf8_ref): Test for HAVE_GAS_SHF_MERGE value.
From-SVN: r71733
parent
ff42324e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
17 deletions
+22
-17
gcc/java/ChangeLog
+4
-0
gcc/java/class.c
+18
-17
No files found.
gcc/java/ChangeLog
View file @
eb9ec0d4
2003-09-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* class.c (build_utf8_ref): Test for HAVE_GAS_SHF_MERGE value.
2003-09-23 Roger Sayle <roger@eyesopen.com>
* jcf-write.c (generate_bytecode_insns): Optimize binary operations
...
...
gcc/java/class.c
View file @
eb9ec0d4
...
...
@@ -779,23 +779,24 @@ build_utf8_ref (tree name)
TREE_READONLY
(
decl
)
=
1
;
TREE_THIS_VOLATILE
(
decl
)
=
0
;
DECL_INITIAL
(
decl
)
=
cinit
;
#ifdef HAVE_GAS_SHF_MERGE
{
int
decl_size
;
/* Ensure decl_size is a multiple of utf8const_type's alignment. */
decl_size
=
(
name_len
+
5
+
TYPE_ALIGN_UNIT
(
utf8const_type
)
-
1
)
&
~
(
TYPE_ALIGN_UNIT
(
utf8const_type
)
-
1
);
if
(
flag_merge_constants
&&
decl_size
<
256
)
{
char
buf
[
32
];
int
flags
=
(
SECTION_OVERRIDE
|
SECTION_MERGE
|
(
SECTION_ENTSIZE
&
decl_size
));
sprintf
(
buf
,
".rodata.jutf8.%d"
,
decl_size
);
named_section_flags
(
buf
,
flags
);
DECL_SECTION_NAME
(
decl
)
=
build_string
(
strlen
(
buf
),
buf
);
}
}
#endif
if
(
HAVE_GAS_SHF_MERGE
)
{
int
decl_size
;
/* Ensure decl_size is a multiple of utf8const_type's alignment. */
decl_size
=
(
name_len
+
5
+
TYPE_ALIGN_UNIT
(
utf8const_type
)
-
1
)
&
~
(
TYPE_ALIGN_UNIT
(
utf8const_type
)
-
1
);
if
(
flag_merge_constants
&&
decl_size
<
256
)
{
char
buf
[
32
];
int
flags
=
(
SECTION_OVERRIDE
|
SECTION_MERGE
|
(
SECTION_ENTSIZE
&
decl_size
));
sprintf
(
buf
,
".rodata.jutf8.%d"
,
decl_size
);
named_section_flags
(
buf
,
flags
);
DECL_SECTION_NAME
(
decl
)
=
build_string
(
strlen
(
buf
),
buf
);
}
}
TREE_CHAIN
(
decl
)
=
utf8_decl_list
;
layout_decl
(
decl
,
0
);
pushdecl
(
decl
);
...
...
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