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
5ab2f7b7
Commit
5ab2f7b7
authored
Nov 17, 2002
by
Kazu Hirata
Committed by
Kazu Hirata
Nov 17, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* builtins.c: Fix formatting.
From-SVN: r59194
parent
7b8dbd50
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
13 deletions
+20
-13
gcc/ChangeLog
+4
-0
gcc/builtins.c
+16
-13
No files found.
gcc/ChangeLog
View file @
5ab2f7b7
2002
-
11
-
17
Kazu
Hirata
<
kazu
@cs
.
umass
.
edu
>
*
builtins
.
c
:
Fix
formatting
.
2002
-
11
-
16
Kazu
Hirata
<
kazu
@cs
.
umass
.
edu
>
*
config
/
h8300
/
h8300
.
md
(
two
anonymous
patterns
)
:
Fix
typos
.
...
...
gcc/builtins.c
View file @
5ab2f7b7
...
...
@@ -790,10 +790,10 @@ expand_builtin_prefetch (arglist)
#ifdef HAVE_prefetch
if
(
HAVE_prefetch
)
{
if
((
!
(
*
insn_data
[(
int
)
CODE_FOR_prefetch
].
operand
[
0
].
predicate
)
if
((
!
(
*
insn_data
[(
int
)
CODE_FOR_prefetch
].
operand
[
0
].
predicate
)
(
op0
,
insn_data
[(
int
)
CODE_FOR_prefetch
].
operand
[
0
].
mode
))
||
(
GET_MODE
(
op0
)
!=
Pmode
))
insn_data
[(
int
)
CODE_FOR_prefetch
].
operand
[
0
].
mode
))
||
(
GET_MODE
(
op0
)
!=
Pmode
))
{
#ifdef POINTERS_EXTEND_UNSIGNED
if
(
GET_MODE
(
op0
)
!=
Pmode
)
...
...
@@ -887,7 +887,7 @@ apply_args_register_offset (regno)
/* Arguments are always put in outgoing registers (in the argument
block) if such make sense. */
#ifdef OUTGOING_REGNO
regno
=
OUTGOING_REGNO
(
regno
);
regno
=
OUTGOING_REGNO
(
regno
);
#endif
return
apply_args_reg_offset
[
regno
];
}
...
...
@@ -1652,7 +1652,7 @@ expand_builtin_strlen (exp, target)
/* Mark the beginning of the strlen sequence so we can emit the
source operand later. */
before_strlen
=
get_last_insn
();
before_strlen
=
get_last_insn
();
char_rtx
=
const0_rtx
;
char_mode
=
insn_data
[(
int
)
icode
].
operand
[
2
].
mode
;
...
...
@@ -2179,14 +2179,14 @@ builtin_memset_gen_str (data, offset, mode)
char
*
p
;
size
=
GET_MODE_SIZE
(
mode
);
if
(
size
==
1
)
return
(
rtx
)
data
;
if
(
size
==
1
)
return
(
rtx
)
data
;
p
=
alloca
(
size
);
memset
(
p
,
1
,
size
);
coeff
=
c_readstr
(
p
,
mode
);
target
=
convert_to_mode
(
mode
,
(
rtx
)
data
,
1
);
target
=
convert_to_mode
(
mode
,
(
rtx
)
data
,
1
);
target
=
expand_mult
(
mode
,
target
,
coeff
,
NULL_RTX
,
1
);
return
force_reg
(
mode
,
target
);
}
...
...
@@ -2257,7 +2257,7 @@ expand_builtin_memset (exp, target, mode)
dest_mem
=
get_memory_rtx
(
dest
);
store_by_pieces
(
dest_mem
,
tree_low_cst
(
len
,
1
),
builtin_memset_gen_str
,
(
PTR
)
val_rtx
,
dest_align
);
(
PTR
)
val_rtx
,
dest_align
);
dest_mem
=
force_operand
(
XEXP
(
dest_mem
,
0
),
NULL_RTX
);
#ifdef POINTERS_EXTEND_UNSIGNED
if
(
GET_MODE
(
dest_mem
)
!=
ptr_mode
)
...
...
@@ -3241,7 +3241,7 @@ expand_builtin_va_end (arglist)
#ifdef EXPAND_BUILTIN_VA_END
valist
=
stabilize_va_list
(
valist
,
0
);
EXPAND_BUILTIN_VA_END
(
arglist
);
EXPAND_BUILTIN_VA_END
(
arglist
);
#else
/* Evaluate for side effects, if needed. I hate macros that don't
do that. */
...
...
@@ -4257,7 +4257,8 @@ validate_arglist VPARAMS ((tree arglist, ...))
VA_OPEN
(
ap
,
arglist
);
VA_FIXEDARG
(
ap
,
tree
,
arglist
);
do
{
do
{
code
=
va_arg
(
ap
,
enum
tree_code
);
switch
(
code
)
{
...
...
@@ -4274,12 +4275,14 @@ validate_arglist VPARAMS ((tree arglist, ...))
/* If no parameters remain or the parameter's code does not
match the specified code, return false. Otherwise continue
checking any remaining arguments. */
if
(
arglist
==
0
||
code
!=
TREE_CODE
(
TREE_TYPE
(
TREE_VALUE
(
arglist
))))
if
(
arglist
==
0
||
code
!=
TREE_CODE
(
TREE_TYPE
(
TREE_VALUE
(
arglist
))))
goto
end
;
break
;
}
arglist
=
TREE_CHAIN
(
arglist
);
}
while
(
1
);
}
while
(
1
);
/* We need gotos here since we can only have one VA_CLOSE in a
function. */
...
...
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