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
77b29023
Commit
77b29023
authored
Nov 08, 2019
by
Jakub Jelinek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* arith.c (character2representation): Change i type to size_t.
From-SVN: r277978
parent
d308ca27
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
gcc/fortran/ChangeLog
+10
-5
gcc/fortran/arith.c
+1
-2
No files found.
gcc/fortran/ChangeLog
View file @
77b29023
2019-11-08 Jakub Jelinek <jakub@redhat.com>
* arith.c (character2representation): Change i type to size_t.
2019-11-08 Mark Eggleston <mark.eggleston@codethink.com>
2019-11-08 Mark Eggleston <mark.eggleston@codethink.com>
Jim MacArthur <jim.macarthur@codethink.co.uk>
Jim MacArthur <jim.macarthur@codethink.co.uk>
* arith.c (hollerith2representation): Use OPT_Wcharacter_truncation in
* arith.c (hollerith2representation): Use OPT_Wcharacter_truncation in
call to gfc_warning. Add character2representation, gfc_character2int,
call to gfc_warning.
gfc_character2real, gfc_character2complex and gfc_character2logical.
(character2representation, gfc_character2int, gfc_character2real,
* arith.h: Add prototypes for gfc_character2int, gfc_character2real,
gfc_character2complex and gfc_character2logical): New.
gfc_character2complex and gfc_character2logical.
* arith.h (gfc_character2int, gfc_character2real, gfc_character2complex,
gfc_character2logical): Declare.
* expr.c (gfc_check_assign): Return true if left hand side is numeric
* expr.c (gfc_check_assign): Return true if left hand side is numeric
or logical and the right hand side is character and of kind=1.
or logical and the right hand side is character and of kind=1.
* gfortran.texi: Add -fdec-char-conversions.
* gfortran.texi: Add -fdec-char-conversions.
...
...
gcc/fortran/arith.c
View file @
77b29023
...
@@ -2534,8 +2534,7 @@ hollerith2representation (gfc_expr *result, gfc_expr *src)
...
@@ -2534,8 +2534,7 @@ hollerith2representation (gfc_expr *result, gfc_expr *src)
static
void
static
void
character2representation
(
gfc_expr
*
result
,
gfc_expr
*
src
)
character2representation
(
gfc_expr
*
result
,
gfc_expr
*
src
)
{
{
size_t
src_len
,
result_len
;
size_t
src_len
,
result_len
,
i
;
int
i
;
src_len
=
src
->
value
.
character
.
length
;
src_len
=
src
->
value
.
character
.
length
;
gfc_target_expr_size
(
result
,
&
result_len
);
gfc_target_expr_size
(
result
,
&
result_len
);
...
...
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