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
0fa83258
Commit
0fa83258
authored
Mar 31, 1993
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(emit_block_move, emit_push_insn, expand_assignment): Size passed to
memcpy/bcopy is SIZETYPE, not Pmode. From-SVN: r3966
parent
41e2a8bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
6 deletions
+18
-6
gcc/expr.c
+18
-6
No files found.
gcc/expr.c
View file @
0fa83258
...
...
@@ -1410,12 +1410,16 @@ emit_block_move (x, y, size, align)
emit_library_call
(
memcpy_libfunc
,
0
,
VOIDmode
,
3
,
XEXP
(
x
,
0
),
Pmode
,
XEXP
(
y
,
0
),
Pmode
,
convert_to_mode
(
Pmode
,
size
,
1
),
Pmode
);
convert_to_mode
(
TYPE_MODE
(
sizetype
),
size
,
TREE_UNSIGNED
(
sizetype
)),
TYPE_MODE
(
sizetype
));
#else
emit_library_call
(
bcopy_libfunc
,
0
,
VOIDmode
,
3
,
XEXP
(
y
,
0
),
Pmode
,
XEXP
(
x
,
0
),
Pmode
,
convert_to_mode
(
Pmode
,
size
,
1
),
Pmode
);
convert_to_mode
(
TYPE_MODE
(
sizetype
),
size
,
TREE_UNSIGNED
(
sizetype
)),
TYPE_MODE
(
sizetype
));
#endif
}
}
...
...
@@ -1991,11 +1995,15 @@ emit_push_insn (x, mode, type, size, align, partial, reg, extra,
#ifdef TARGET_MEM_FUNCTIONS
emit_library_call
(
memcpy_libfunc
,
0
,
VOIDmode
,
3
,
temp
,
Pmode
,
XEXP
(
xinner
,
0
),
Pmode
,
size
,
Pmode
);
convert_to_mode
(
TYPE_MODE
(
sizetype
),
size
,
TREE_UNSIGNED
(
sizetype
)),
size
,
TYPE_MODE
(
sizetype
));
#else
emit_library_call
(
bcopy_libfunc
,
0
,
VOIDmode
,
3
,
XEXP
(
xinner
,
0
),
Pmode
,
temp
,
Pmode
,
size
,
Pmode
);
convert_to_mode
(
TYPE_MODE
(
sizetype
),
size
,
TREE_UNSIGNED
(
sizetype
)),
size
,
TYPE_MODE
(
sizetype
));
#endif
OK_DEFER_POP
;
}
...
...
@@ -2222,12 +2230,16 @@ expand_assignment (to, from, want_value, suggest_reg)
emit_library_call
(
memcpy_libfunc
,
0
,
VOIDmode
,
3
,
XEXP
(
to_rtx
,
0
),
Pmode
,
XEXP
(
from_rtx
,
0
),
Pmode
,
size
,
Pmode
);
convert_to_mode
(
TYPE_MODE
(
sizetype
),
size
,
TREE_UNSIGNED
(
sizetype
)),
size
,
TYPE_MODE
(
sizetype
));
#else
emit_library_call
(
bcopy_libfunc
,
0
,
VOIDmode
,
3
,
XEXP
(
from_rtx
,
0
),
Pmode
,
XEXP
(
to_rtx
,
0
),
Pmode
,
size
,
Pmode
);
convert_to_mode
(
TYPE_MODE
(
sizetype
),
size
,
TREE_UNSIGNED
(
sizetype
)),
size
,
TYPE_MODE
(
sizetype
));
#endif
preserve_temp_slots
(
to_rtx
);
...
...
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