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
bc192c77
Commit
bc192c77
authored
Jul 07, 2005
by
Feng Wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Real commit for Hollerith constants.
From-SVN: r101689
parent
d3642f89
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
gcc/fortran/gfortran.texi
+30
-0
No files found.
gcc/fortran/gfortran.texi
View file @
bc192c77
...
...
@@ -632,6 +632,7 @@ of extensions, and @option{-std=legacy} allows both without warning.
*
Real
array
indices
::
*
Unary
operators
::
*
Implicitly
interconvert
LOGICAL
and
INTEGER
::
*
Hollerith
constants
support
::
@end
menu
@node
Old
-
style
kind
specifications
...
...
@@ -804,6 +805,35 @@ converting from INTEGER to LOGICAL, the value zero is interpreted as
i
=
.
FALSE
.
@end
smallexample
@node
Hollerith
constants
support
@section
Hollerith
constants
support
@cindex
Hollerith
constants
A
Hollerith
constant
is
a
string
of
characters
preceded
by
the
letter
@samp{
H
}
or
@samp{
h
}
,
and
there
must
be
an
literal
,
unsigned
,
nonzero
default
integer
constant
indicating
the
number
of
characters
in
the
string
.
Hollerith
constants
are
stored
as
byte
strings
,
one
character
per
byte
.
@command{
gfortran
}
supports
Hollerith
constants
.
They
can
be
used
as
the
right
hands
in
the
@code{
DATA
}
statement
and
@code{
ASSIGN
}
statement
,
also
as
the
arguments
.
The
left
hands
can
be
of
Integer
,
Real
,
Complex
and
Logical
type
.
The
constant
will
be
padded
or
trancated
to
fit
the
size
of
left
hand
.
Valid
Hollerith
constants
examples
:
@smallexample
complex
*
16
x
(
2
)
data
x
/
16
Habcdefghijklmnop
,
16
Hqrstuvwxyz012345
/
call
foo
(
4
H
abc
)
x
(
1
)
=
16
Habcdefghijklmnop
@end
smallexample
Invalid
Hollerith
constants
examples
:
@smallexample
integer
*
4
a
a
=
8
H12345678
!
The
Hollerith
constant
is
too
long
.
It
will
be
truncated
.
a
=
0
H
!
At
least
one
character
needed
.
@end
smallexample
@include
intrinsic
.
texi
@c
---------------------------------------------------------------------
@c
Contributing
...
...
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