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
33cf5823
Commit
33cf5823
authored
Apr 26, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(expand_builtin, case BUILT_IN_CONSTANT_P): A pointer to a string
constant is a constant. From-SVN: r9475
parent
ccafc85b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
gcc/expr.c
+9
-2
No files found.
gcc/expr.c
View file @
33cf5823
...
...
@@ -7505,8 +7505,15 @@ expand_builtin (exp, target, subtarget, mode, ignore)
if
(
arglist
==
0
)
return
const0_rtx
;
else
return
(
TREE_CODE_CLASS
(
TREE_CODE
(
TREE_VALUE
(
arglist
)))
==
'c'
?
const1_rtx
:
const0_rtx
);
{
tree
arg
=
TREE_VALUE
(
arglist
);
STRIP_NOPS
(
arg
);
return
(
TREE_CODE_CLASS
(
TREE_CODE
(
arg
))
==
'c'
||
(
TREE_CODE
(
arg
)
==
ADDR_EXPR
&&
TREE_CODE
(
TREE_OPERAND
(
arg
,
0
))
==
STRING_CST
)
?
const1_rtx
:
const0_rtx
);
}
case
BUILT_IN_FRAME_ADDRESS
:
/* The argument must be a nonnegative integer constant.
...
...
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