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
83aa73e7
Commit
83aa73e7
authored
Feb 27, 2016
by
Alessandro Fanfarillo
Committed by
Alessandro Fanfarillo
Feb 27, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Right size for events
From-SVN: r233779
parent
bd522678
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
gcc/fortran/ChangeLog
+7
-0
gcc/fortran/trans-types.c
+2
-1
gcc/fortran/trans.c
+1
-1
No files found.
gcc/fortran/ChangeLog
View file @
83aa73e7
2016-02-27 Alessandro Fanfarillo <fanfarillo.gcc@gmail.com>
* trans.c (gfc_allocate_allocatable): size conversion
from byte to number of elements for event variables.
* trans-types.c (gfc_get_derived_type): event variables
represented as a pointer (like lock variable).
2016-02-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/61156
...
...
gcc/fortran/trans-types.c
View file @
83aa73e7
...
...
@@ -2370,7 +2370,8 @@ gfc_get_derived_type (gfc_symbol * derived)
if
(
derived
->
attr
.
unlimited_polymorphic
||
(
flag_coarray
==
GFC_FCOARRAY_LIB
&&
derived
->
from_intmod
==
INTMOD_ISO_FORTRAN_ENV
&&
derived
->
intmod_sym_id
==
ISOFORTRAN_LOCK_TYPE
))
&&
(
derived
->
intmod_sym_id
==
ISOFORTRAN_LOCK_TYPE
||
derived
->
intmod_sym_id
==
ISOFORTRAN_EVENT_TYPE
)))
return
ptr_type_node
;
if
(
flag_coarray
!=
GFC_FCOARRAY_LIB
...
...
gcc/fortran/trans.c
View file @
83aa73e7
...
...
@@ -820,7 +820,7 @@ gfc_allocate_allocatable (stmtblock_t * block, tree mem, tree size, tree token,
the FE only passes the pointer around and leaves the actual
representation to the library. Hence, we have to convert back to the
number of elements. */
if
(
lock_var
)
if
(
lock_var
||
event_var
)
size
=
fold_build2_loc
(
input_location
,
TRUNC_DIV_EXPR
,
size_type_node
,
size
,
TYPE_SIZE_UNIT
(
ptr_type_node
));
...
...
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