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
13413760
Commit
13413760
authored
Jun 03, 2004
by
Tobias Schlüter
Committed by
Tobias Schlüter
Jun 03, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* trans-array.c: Fix spelling in comments.
From-SVN: r82603
parent
e18be1d4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
15 deletions
+19
-15
gcc/fortran/ChangeLog
+4
-0
gcc/fortran/trans-array.c
+15
-15
No files found.
gcc/fortran/ChangeLog
View file @
13413760
2004-06-03 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
* trans-array.c: Fix spelling in comments.
2004-06-02 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
2004-06-02 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
PR fortran/15557
PR fortran/15557
...
...
gcc/fortran/trans-array.c
View file @
13413760
...
@@ -98,7 +98,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
...
@@ -98,7 +98,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
static
gfc_ss
*
gfc_walk_subexpr
(
gfc_ss
*
,
gfc_expr
*
);
static
gfc_ss
*
gfc_walk_subexpr
(
gfc_ss
*
,
gfc_expr
*
);
/* The contents of this structure aren't actualy used, just the address. */
/* The contents of this structure aren't actual
l
y used, just the address. */
static
gfc_ss
gfc_ss_terminator_var
;
static
gfc_ss
gfc_ss_terminator_var
;
gfc_ss
*
const
gfc_ss_terminator
=
&
gfc_ss_terminator_var
;
gfc_ss
*
const
gfc_ss_terminator
=
&
gfc_ss_terminator_var
;
...
@@ -524,7 +524,7 @@ gfc_trans_allocate_temp_array (gfc_loopinfo * loop, gfc_ss_info * info,
...
@@ -524,7 +524,7 @@ gfc_trans_allocate_temp_array (gfc_loopinfo * loop, gfc_ss_info * info,
info
->
dim
[
dim
]
=
dim
;
info
->
dim
[
dim
]
=
dim
;
}
}
/* Initiali
s
e the descriptor. */
/* Initiali
z
e the descriptor. */
type
=
type
=
gfc_get_array_type_bounds
(
eltype
,
info
->
dimen
,
loop
->
from
,
loop
->
to
,
1
);
gfc_get_array_type_bounds
(
eltype
,
info
->
dimen
,
loop
->
from
,
loop
->
to
,
1
);
desc
=
gfc_create_var
(
type
,
"atmp"
);
desc
=
gfc_create_var
(
type
,
"atmp"
);
...
@@ -591,7 +591,7 @@ gfc_put_offset_into_var (stmtblock_t * pblock, tree * poffset,
...
@@ -591,7 +591,7 @@ gfc_put_offset_into_var (stmtblock_t * pblock, tree * poffset,
tree
*
offsetvar
)
tree
*
offsetvar
)
{
{
/* We should have already created the offset variable. We cannot
/* We should have already created the offset variable. We cannot
create it here because we may be in an inner scop
d
e. */
create it here because we may be in an inner scope. */
assert
(
*
offsetvar
!=
NULL_TREE
);
assert
(
*
offsetvar
!=
NULL_TREE
);
gfc_add_modify_expr
(
pblock
,
*
offsetvar
,
*
poffset
);
gfc_add_modify_expr
(
pblock
,
*
offsetvar
,
*
poffset
);
*
poffset
=
*
offsetvar
;
*
poffset
=
*
offsetvar
;
...
@@ -801,7 +801,7 @@ gfc_trans_array_constructor_value (stmtblock_t * pblock, tree type,
...
@@ -801,7 +801,7 @@ gfc_trans_array_constructor_value (stmtblock_t * pblock, tree type,
gfc_add_block_to_block
(
pblock
,
&
se
.
pre
);
gfc_add_block_to_block
(
pblock
,
&
se
.
pre
);
loopvar
=
se
.
expr
;
loopvar
=
se
.
expr
;
/* Initialize th
i
e loop. */
/* Initialize the loop. */
gfc_init_se
(
&
se
,
NULL
);
gfc_init_se
(
&
se
,
NULL
);
gfc_conv_expr_val
(
&
se
,
c
->
iterator
->
start
);
gfc_conv_expr_val
(
&
se
,
c
->
iterator
->
start
);
gfc_add_block_to_block
(
pblock
,
&
se
.
pre
);
gfc_add_block_to_block
(
pblock
,
&
se
.
pre
);
...
@@ -955,7 +955,7 @@ gfc_trans_array_constructor (gfc_loopinfo * loop, gfc_ss * ss)
...
@@ -955,7 +955,7 @@ gfc_trans_array_constructor (gfc_loopinfo * loop, gfc_ss * ss)
else
else
assert
(
INTEGER_CST_P
(
offset
));
assert
(
INTEGER_CST_P
(
offset
));
#if 0
#if 0
/* Disable bound checking for now c
os
it's probably broken. */
/* Disable bound checking for now c
ause
it's probably broken. */
if (flag_bounds_check)
if (flag_bounds_check)
{
{
abort ();
abort ();
...
@@ -1102,7 +1102,7 @@ gfc_init_loopinfo (gfc_loopinfo * loop)
...
@@ -1102,7 +1102,7 @@ gfc_init_loopinfo (gfc_loopinfo * loop)
gfc_init_block
(
&
loop
->
pre
);
gfc_init_block
(
&
loop
->
pre
);
gfc_init_block
(
&
loop
->
post
);
gfc_init_block
(
&
loop
->
post
);
/* Initialy scalarize in order. */
/* Initial
l
y scalarize in order. */
for
(
n
=
0
;
n
<
GFC_MAX_DIMENSIONS
;
n
++
)
for
(
n
=
0
;
n
<
GFC_MAX_DIMENSIONS
;
n
++
)
loop
->
order
[
n
]
=
n
;
loop
->
order
[
n
]
=
n
;
...
@@ -1134,7 +1134,7 @@ gfc_conv_array_data (tree descriptor)
...
@@ -1134,7 +1134,7 @@ gfc_conv_array_data (tree descriptor)
return
descriptor
;
return
descriptor
;
else
else
{
{
/* Descri
tp
orless arrays. */
/* Descri
pt
orless arrays. */
return
gfc_build_addr_expr
(
NULL
,
descriptor
);
return
gfc_build_addr_expr
(
NULL
,
descriptor
);
}
}
}
}
...
@@ -1931,7 +1931,7 @@ gfc_conv_ss_startstride (gfc_loopinfo * loop)
...
@@ -1931,7 +1931,7 @@ gfc_conv_ss_startstride (gfc_loopinfo * loop)
gfc_todo_error
(
"Unable to determine rank of expression"
);
gfc_todo_error
(
"Unable to determine rank of expression"
);
/*
l
oop over all the SS in the chain. */
/*
L
oop over all the SS in the chain. */
for
(
ss
=
loop
->
ss
;
ss
!=
gfc_ss_terminator
;
ss
=
ss
->
loop_chain
)
for
(
ss
=
loop
->
ss
;
ss
!=
gfc_ss_terminator
;
ss
=
ss
->
loop_chain
)
{
{
switch
(
ss
->
type
)
switch
(
ss
->
type
)
...
@@ -2061,7 +2061,7 @@ gfc_could_be_alias (gfc_ss * lss, gfc_ss * rss)
...
@@ -2061,7 +2061,7 @@ gfc_could_be_alias (gfc_ss * lss, gfc_ss * rss)
&&
lsym
->
ts
.
type
!=
BT_DERIVED
)
&&
lsym
->
ts
.
type
!=
BT_DERIVED
)
return
0
;
return
0
;
/* For
D
erived types we must check all the component types. We can ignore
/* For
d
erived types we must check all the component types. We can ignore
array references as these will have the same base type as the previous
array references as these will have the same base type as the previous
component ref. */
component ref. */
for
(
lref
=
lss
->
expr
->
ref
;
lref
!=
lss
->
data
.
info
.
ref
;
lref
=
lref
->
next
)
for
(
lref
=
lss
->
expr
->
ref
;
lref
!=
lss
->
data
.
info
.
ref
;
lref
=
lref
->
next
)
...
@@ -2148,7 +2148,7 @@ gfc_conv_resolve_dependencies (gfc_loopinfo * loop, gfc_ss * dest,
...
@@ -2148,7 +2148,7 @@ gfc_conv_resolve_dependencies (gfc_loopinfo * loop, gfc_ss * dest,
depends[n] = 1;
depends[n] = 1;
}
}
/* Put all the dimensions with depend
a
ncies in the
/* Put all the dimensions with depend
e
ncies in the
innermost loops. */
innermost loops. */
dim = 0;
dim = 0;
for (n = 0; n < loop->dimen; n++)
for (n = 0; n < loop->dimen; n++)
...
@@ -2224,10 +2224,10 @@ gfc_conv_loop_setup (gfc_loopinfo * loop)
...
@@ -2224,10 +2224,10 @@ gfc_conv_loop_setup (gfc_loopinfo * loop)
if
(
ss
->
type
==
GFC_SS_CONSTRUCTOR
)
if
(
ss
->
type
==
GFC_SS_CONSTRUCTOR
)
{
{
/* Try to figure out the size of the construct
i
or. */
/* Try to figure out the size of the constructor. */
/* TODO: avoid this by making the
p
rontend set the shape. */
/* TODO: avoid this by making the
f
rontend set the shape. */
gfc_get_array_cons_size
(
&
i
,
ss
->
expr
->
value
.
constructor
);
gfc_get_array_cons_size
(
&
i
,
ss
->
expr
->
value
.
constructor
);
/* A negative value me
e
ns we failed. */
/* A negative value me
a
ns we failed. */
if
(
mpz_sgn
(
i
)
>
0
)
if
(
mpz_sgn
(
i
)
>
0
)
{
{
mpz_sub_ui
(
i
,
i
,
1
);
mpz_sub_ui
(
i
,
i
,
1
);
...
@@ -3376,7 +3376,7 @@ gfc_conv_expr_descriptor (gfc_se * se, gfc_expr * expr, gfc_ss * ss)
...
@@ -3376,7 +3376,7 @@ gfc_conv_expr_descriptor (gfc_se * se, gfc_expr * expr, gfc_ss * ss)
/* Associate the SS with the loop. */
/* Associate the SS with the loop. */
gfc_add_ss_to_loop
(
&
loop
,
ss
);
gfc_add_ss_to_loop
(
&
loop
,
ss
);
/* Tell the scalarizer not to bother creating loop var
l
iables, etc. */
/* Tell the scalarizer not to bother creating loop variables, etc. */
if
(
!
need_tmp
)
if
(
!
need_tmp
)
loop
.
array_parameter
=
1
;
loop
.
array_parameter
=
1
;
else
else
...
@@ -4048,7 +4048,7 @@ gfc_walk_function_expr (gfc_ss * ss, gfc_expr * expr)
...
@@ -4048,7 +4048,7 @@ gfc_walk_function_expr (gfc_ss * ss, gfc_expr * expr)
isym
=
expr
->
value
.
function
.
isym
;
isym
=
expr
->
value
.
function
.
isym
;
/* Handle intrinsic functions sep
e
rately. */
/* Handle intrinsic functions sep
a
rately. */
if
(
isym
)
if
(
isym
)
return
gfc_walk_intrinsic_function
(
ss
,
expr
,
isym
);
return
gfc_walk_intrinsic_function
(
ss
,
expr
,
isym
);
...
...
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