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
9f4afcd4
Commit
9f4afcd4
authored
Oct 17, 2009
by
Eric Botcazou
Committed by
Eric Botcazou
Oct 17, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gcc-interface/trans.c (addressable_p): Handle bitwise operations.
From-SVN: r152932
parent
0046b1a7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
0 deletions
+35
-0
gcc/ada/ChangeLog
+4
-0
gcc/ada/gcc-interface/trans.c
+4
-0
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gnat.dg/unchecked_convert4.adb
+23
-0
No files found.
gcc/ada/ChangeLog
View file @
9f4afcd4
2009
-
10
-
17
Eric
Botcazou
<
ebotcazou
@
adacore
.
com
>
*
gcc
-
interface
/
trans
.
c
(
addressable_p
):
Handle
bitwise
operations
.
2009
-
10
-
16
Eric
Botcazou
<
ebotcazou
@
adacore
.
com
>
2009
-
10
-
16
Eric
Botcazou
<
ebotcazou
@
adacore
.
com
>
*
gcc
-
interface
/
ada
-
tree
.
h
(
TYPE_FAT_POINTER_P
):
Swap
with
...
*
gcc
-
interface
/
ada
-
tree
.
h
(
TYPE_FAT_POINTER_P
):
Swap
with
...
...
...
gcc/ada/gcc-interface/trans.c
View file @
9f4afcd4
...
@@ -6949,6 +6949,10 @@ addressable_p (tree gnu_expr, tree gnu_type)
...
@@ -6949,6 +6949,10 @@ addressable_p (tree gnu_expr, tree gnu_type)
case
CALL_EXPR
:
case
CALL_EXPR
:
case
PLUS_EXPR
:
case
PLUS_EXPR
:
case
MINUS_EXPR
:
case
MINUS_EXPR
:
case
BIT_IOR_EXPR
:
case
BIT_XOR_EXPR
:
case
BIT_AND_EXPR
:
case
BIT_NOT_EXPR
:
/* All rvalues are deemed addressable since taking their address will
/* All rvalues are deemed addressable since taking their address will
force a temporary to be created by the middle-end. */
force a temporary to be created by the middle-end. */
return
true
;
return
true
;
...
...
gcc/testsuite/ChangeLog
View file @
9f4afcd4
2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/unchecked_convert4.adb: New test.
2009-10-15 Jason Merrill <jason@redhat.com>
2009-10-15 Jason Merrill <jason@redhat.com>
PR c++/38798
PR c++/38798
...
...
gcc/testsuite/gnat.dg/unchecked_convert4.adb
0 → 100644
View file @
9f4afcd4
-- { dg-do compile }
with Unchecked_Conversion;
procedure Unchecked_Convert4 is
type Uint32 is mod 2**32;
type Rec is record
I : Uint32;
end record;
pragma Atomic (Rec);
function Conv is new Unchecked_Conversion (Uint32, Rec);
function F return Uint32;
pragma Import (Ada, F);
procedure Proc (R : Rec) is begin null; end;
begin
Proc (Conv (F or 1));
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