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
7ee1f872
Commit
7ee1f872
authored
Apr 26, 2018
by
Eric Botcazou
Committed by
Eric Botcazou
Apr 26, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* loop-invariant.c (may_assign_reg_p): Return false for frame pointer.
From-SVN: r259683
parent
b1ea8387
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
46 additions
and
0 deletions
+46
-0
gcc/ChangeLog
+4
-0
gcc/loop-invariant.c
+3
-0
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gnat.dg/loop_optimization24.adb
+35
-0
No files found.
gcc/ChangeLog
View file @
7ee1f872
2018-04-26 Eric Botcazou <ebotcazou@adacore.com>
* loop-invariant.c (may_assign_reg_p): Return false for frame pointer.
2018-04-26 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.md ("isa" attribute): Add x64_sse2.
...
...
gcc/loop-invariant.c
View file @
7ee1f872
...
...
@@ -660,6 +660,9 @@ may_assign_reg_p (rtx x)
return
(
GET_MODE
(
x
)
!=
VOIDmode
&&
GET_MODE
(
x
)
!=
BLKmode
&&
can_copy_p
(
GET_MODE
(
x
))
/* Do not mess with the frame pointer adjustments that can
be generated e.g. by expand_builtin_setjmp_receiver. */
&&
x
!=
frame_pointer_rtx
&&
(
!
REG_P
(
x
)
||
!
HARD_REGISTER_P
(
x
)
||
REGNO_REG_CLASS
(
REGNO
(
x
))
!=
NO_REGS
));
...
...
gcc/testsuite/ChangeLog
View file @
7ee1f872
2018-04-26 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/loop_optimization24.adb: New test.
2018-04-26 Richard Biener <rguenther@suse.de>
PR tree-optimization/85116
...
...
gcc/testsuite/gnat.dg/loop_optimization24.adb
0 → 100644
View file @
7ee1f872
-- { dg-do run }
-- { dg-options "-O" }
procedure Loop_Optimization24 is
procedure Callback is
begin
raise Constraint_Error;
end;
type Thread_Name_Ptr is access constant String;
type Callback_Ptr is access procedure;
type Callback_Information is record
Name : Thread_Name_Ptr;
Proc : Callback_Ptr;
end record;
type Callback_List is array (Positive range <>) of Callback_Information;
Cbs : Callback_List
:= (1 => (Proc => Callback'access, name => new String'("Callback")),
2 => (Proc => Callback'access, name => new String'("Callback")));
begin
for Index in Cbs'Range loop
begin
if Cbs(Index).proc /= null then
Cbs(Index).proc.all;
end if;
exception
when Constraint_Error => null;
end;
end loop;
end;
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