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
d303ff97
Commit
d303ff97
authored
Feb 04, 2015
by
H.J. Lu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Actually check in the fix
From-SVN: r220416
parent
7489140d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
gcc/lra-eliminations.c
+2
-0
gcc/testsuite/gcc.target/i386/pr64905.c
+22
-0
No files found.
gcc/lra-eliminations.c
View file @
d303ff97
...
...
@@ -182,6 +182,8 @@ setup_can_eliminate (struct lra_elim_table *ep, bool value)
if
(
!
value
&&
ep
->
from
==
FRAME_POINTER_REGNUM
&&
ep
->
to
==
STACK_POINTER_REGNUM
)
frame_pointer_needed
=
1
;
if
(
!
frame_pointer_needed
)
REGNO_POINTER_ALIGN
(
HARD_FRAME_POINTER_REGNUM
)
=
0
;
}
/* Map: eliminable "from" register -> its current elimination,
...
...
gcc/testsuite/gcc.target/i386/pr64905.c
0 → 100644
View file @
d303ff97
/* { dg-do compile { target { ! ia32 } } } */
/* { dg-options "-Os -ffixed-rax -ffixed-rbx -ffixed-rcx -ffixed-rdx -ffixed-rdi -ffixed-rsi -ffixed-r8 -ffixed-r9 -ffixed-r10 -ffixed-r11 -ffixed-r12 -ffixed-r13 -ffixed-r14 -ffixed-r15" } */
/* { dg-final { scan-assembler-not "movl\[ \t\]0\\(%.*\\), %.*" } } */
typedef
unsigned
short
uint16_t
;
uint16_t
a_global
;
void
__attribute__
((
noinline
))
function
(
uint16_t
**
a_p
)
{
// unaligned access by address in %rbp: mov 0x0(%rbp),%ebp
a_global
=
**
a_p
;
}
int
main
(
int
argc
,
char
**
argv
)
{
uint16_t
array
[
4
]
=
{
1
,
2
,
3
,
4
};
uint16_t
*
array_elem_p
=
&
array
[
3
];
function
(
&
array_elem_p
);
return
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