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
98aad286
Commit
98aad286
authored
Feb 11, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(expand_builtin): If the builtin was called as __builtin_whatever,
pretend we're optimizing. From-SVN: r6529
parent
dc903608
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
gcc/expr.c
+9
-6
No files found.
gcc/expr.c
View file @
98aad286
...
...
@@ -6639,6 +6639,9 @@ c_strlen (src)
SUBTARGET may be used as the target for computing one of EXP's operands.
IGNORE is nonzero if the value is to be ignored. */
#define CALLED_AS_BUILT_IN(NODE) \
(!strncmp (IDENTIFIER_POINTER (DECL_NAME (NODE)), "__builtin_", 10))
static
rtx
expand_builtin
(
exp
,
target
,
subtarget
,
mode
,
ignore
)
tree
exp
;
...
...
@@ -7110,7 +7113,7 @@ expand_builtin (exp, target, subtarget, mode, ignore)
case
BUILT_IN_FFS
:
/* If not optimizing, call the library function. */
if
(
!
optimize
)
if
(
!
optimize
&&
!
CALLED_AS_BUILT_IN
(
fndecl
)
)
break
;
if
(
arglist
==
0
...
...
@@ -7130,7 +7133,7 @@ expand_builtin (exp, target, subtarget, mode, ignore)
case
BUILT_IN_STRLEN
:
/* If not optimizing, call the library function. */
if
(
!
optimize
)
if
(
!
optimize
&&
!
CALLED_AS_BUILT_IN
(
fndecl
)
)
break
;
if
(
arglist
==
0
...
...
@@ -7212,7 +7215,7 @@ expand_builtin (exp, target, subtarget, mode, ignore)
case
BUILT_IN_STRCPY
:
/* If not optimizing, call the library function. */
if
(
!
optimize
)
if
(
!
optimize
&&
!
CALLED_AS_BUILT_IN
(
fndecl
)
)
break
;
if
(
arglist
==
0
...
...
@@ -7236,7 +7239,7 @@ expand_builtin (exp, target, subtarget, mode, ignore)
/* Drops in. */
case
BUILT_IN_MEMCPY
:
/* If not optimizing, call the library function. */
if
(
!
optimize
)
if
(
!
optimize
&&
!
CALLED_AS_BUILT_IN
(
fndecl
)
)
break
;
if
(
arglist
==
0
...
...
@@ -7290,7 +7293,7 @@ expand_builtin (exp, target, subtarget, mode, ignore)
#ifdef HAVE_cmpstrsi
case
BUILT_IN_STRCMP
:
/* If not optimizing, call the library function. */
if
(
!
optimize
)
if
(
!
optimize
&&
!
CALLED_AS_BUILT_IN
(
fndecl
)
)
break
;
if
(
arglist
==
0
...
...
@@ -7343,7 +7346,7 @@ expand_builtin (exp, target, subtarget, mode, ignore)
/* Drops in. */
case
BUILT_IN_MEMCMP
:
/* If not optimizing, call the library function. */
if
(
!
optimize
)
if
(
!
optimize
&&
!
CALLED_AS_BUILT_IN
(
fndecl
)
)
break
;
if
(
arglist
==
0
...
...
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