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
eafaa35b
Commit
eafaa35b
authored
Mar 09, 2008
by
Eric Botcazou
Committed by
Eric Botcazou
Mar 09, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
frame_overflow.adb: Improve portability.
* gnat.dg/frame_overflow.adb: Improve portability. From-SVN: r133054
parent
be3d4789
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gnat.dg/frame_overflow.adb
+5
-3
No files found.
gcc/testsuite/ChangeLog
View file @
eafaa35b
2008
-
03
-
09
Eric
Botcazou
<
ebotcazou
@adacore
.
com
>
*
gnat
.
dg
/
frame_overflow
.
adb
:
Improve
portability
.
2008
-
03
-
08
H
.
J
.
Lu
<
hongjiu
.
lu
@intel
.
com
>
2008
-
03
-
08
H
.
J
.
Lu
<
hongjiu
.
lu
@intel
.
com
>
PR
target
/
35350
PR
target
/
35350
gcc/testsuite/gnat.dg/frame_overflow.adb
View file @
eafaa35b
-- { dg-do compile }
-- { dg-do compile }
with System;
procedure frame_overflow is
procedure frame_overflow is
type Bitpos_Range_T is
new Positive
;
type Bitpos_Range_T is
range 1..2**(System.Word_Size-1)-1
;
type Bitmap_Array_T is array (Bitpos_Range_T) of Boolean;
type Bitmap_Array_T is array (Bitpos_Range_T) of Boolean;
type Bitmap_T is record
type Bitmap_T is record
Bits : Bitmap_Array_T := (others => False);
Bits : Bitmap_Array_T := (others => False);
end record;
end record;
function -- { dg-error "too large"
""
}
function -- { dg-error "too large" }
Set_In (Bitmap : Bitmap_T; Bitpos : Bitpos_Range_T) return Bitmap_T
Set_In (Bitmap : Bitmap_T; Bitpos : Bitpos_Range_T) return Bitmap_T
is
is
Result: Bitmap_T := Bitmap;
Result: Bitmap_T := Bitmap;
...
@@ -18,7 +20,7 @@ procedure frame_overflow is
...
@@ -18,7 +20,7 @@ procedure frame_overflow is
return Result;
return Result;
end;
end;
function -- { dg-error "too large"
""
}
function -- { dg-error "too large" }
Negate (Bitmap : Bitmap_T) return Bitmap_T is
Negate (Bitmap : Bitmap_T) return Bitmap_T is
Result: Bitmap_T;
Result: Bitmap_T;
begin
begin
...
...
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