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
44e57700
Commit
44e57700
authored
Jul 02, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
From-SVN: r1386
parent
5d55ba75
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
6 deletions
+18
-6
gcc/halfpic.c
+18
-6
No files found.
gcc/halfpic.c
View file @
44e57700
...
@@ -209,14 +209,26 @@ half_pic_encode (decl)
...
@@ -209,14 +209,26 @@ half_pic_encode (decl)
if
(
code
!=
VAR_DECL
&&
code
!=
FUNCTION_DECL
)
if
(
code
!=
VAR_DECL
&&
code
!=
FUNCTION_DECL
)
return
;
return
;
/* If this is not an external reference, it can't be half-pic. */
if
(
!
TREE_EXTERNAL
(
decl
))
return
;
asm_name
=
DECL_ASSEMBLER_NAME
(
decl
);
asm_name
=
DECL_ASSEMBLER_NAME
(
decl
);
if
(
!
asm_name
)
if
(
!
asm_name
)
return
;
return
;
#ifdef HALF_PIC_DEBUG
if
(
HALF_PIC_DEBUG
)
{
if
(
HALF_PIC_DEBUG
)
fprintf
(
stderr
,
"
\n
========== Half_pic_encode %.*s
\n
"
,
IDENTIFIER_LENGTH
(
asm_name
),
IDENTIFIER_POINTER
(
asm_name
));
debug_tree
(
decl
);
}
#endif
/* If this is not an external reference, it can't be half-pic. */
if
(
!
TREE_EXTERNAL
(
decl
)
&&
(
code
!=
VAR_DECL
||
!
TREE_PUBLIC
(
decl
)))
return
;
ptr
=
half_pic_hash
(
IDENTIFIER_POINTER
(
asm_name
),
ptr
=
half_pic_hash
(
IDENTIFIER_POINTER
(
asm_name
),
IDENTIFIER_LENGTH
(
asm_name
),
IDENTIFIER_LENGTH
(
asm_name
),
TRUE
);
TRUE
);
...
@@ -225,7 +237,7 @@ half_pic_encode (decl)
...
@@ -225,7 +237,7 @@ half_pic_encode (decl)
#ifdef HALF_PIC_DEBUG
#ifdef HALF_PIC_DEBUG
if
(
HALF_PIC_DEBUG
)
if
(
HALF_PIC_DEBUG
)
fprintf
(
stderr
,
"
\n
========== Half_pic_encode %.*s
\n
"
,
fprintf
(
stderr
,
"
\n
%.*s is half-pic
\n
"
,
IDENTIFIER_LENGTH
(
asm_name
),
IDENTIFIER_LENGTH
(
asm_name
),
IDENTIFIER_POINTER
(
asm_name
));
IDENTIFIER_POINTER
(
asm_name
));
#endif
#endif
...
@@ -277,7 +289,7 @@ half_pic_address_p (addr)
...
@@ -277,7 +289,7 @@ half_pic_address_p (addr)
case
CONST
:
case
CONST
:
{
{
rtx
offset
=
const0_rtx
;
rtx
offset
=
const0_rtx
;
addr
=
eliminate_constant_term
(
addr
,
&
offset
);
addr
=
eliminate_constant_term
(
XEXP
(
addr
,
0
)
,
&
offset
);
if
(
GET_CODE
(
addr
)
!=
SYMBOL_REF
)
if
(
GET_CODE
(
addr
)
!=
SYMBOL_REF
)
return
FALSE
;
return
FALSE
;
}
}
...
...
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