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
c1775967
Commit
c1775967
authored
Nov 20, 2010
by
Janne Blomqvist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix size_type_node and sizetype in Fortran frontend
From-SVN: r166976
parent
4942af9b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
gcc/fortran/ChangeLog
+7
-0
gcc/fortran/f95-lang.c
+4
-9
gcc/fortran/trans-types.c
+0
-2
No files found.
gcc/fortran/ChangeLog
View file @
c1775967
2010-11-20 Janne Blomqvist <jb@gcc.gnu.org>
* f95-lang.c (gfc_init_decl_processing): Set size_type_node as
unsigned int of pointer size and set sizetype based on that.
* trans-types.c (gfc_init_types): Don't set size_type_node to an
unsigned type.
2010-11-17 Joseph Myers <joseph@codesourcery.com>
2010-11-17 Joseph Myers <joseph@codesourcery.com>
* f95-lang.c (gfc_be_parse_file): Take no arguments.
* f95-lang.c (gfc_be_parse_file): Take no arguments.
...
...
gcc/fortran/f95-lang.c
View file @
c1775967
...
@@ -582,15 +582,10 @@ gfc_init_decl_processing (void)
...
@@ -582,15 +582,10 @@ gfc_init_decl_processing (void)
only use it for actual characters, not for INTEGER(1). Also, we
only use it for actual characters, not for INTEGER(1). Also, we
want double_type_node to actually have double precision. */
want double_type_node to actually have double precision. */
build_common_tree_nodes
(
false
);
build_common_tree_nodes
(
false
);
/* x86_64 mingw32 has a sizetype of "unsigned long long", most other hosts
have a sizetype of "unsigned long". Therefore choose the correct size
size_type_node
=
gfc_build_uint_type
(
POINTER_SIZE
);
in mostly target independent way. */
set_sizetype
(
size_type_node
);
if
(
TYPE_MODE
(
long_unsigned_type_node
)
==
ptr_mode
)
set_sizetype
(
long_unsigned_type_node
);
else
if
(
TYPE_MODE
(
long_long_unsigned_type_node
)
==
ptr_mode
)
set_sizetype
(
long_long_unsigned_type_node
);
else
set_sizetype
(
long_unsigned_type_node
);
build_common_tree_nodes_2
(
0
);
build_common_tree_nodes_2
(
0
);
void_list_node
=
build_tree_list
(
NULL_TREE
,
void_type_node
);
void_list_node
=
build_tree_list
(
NULL_TREE
,
void_type_node
);
...
...
gcc/fortran/trans-types.c
View file @
c1775967
...
@@ -919,8 +919,6 @@ gfc_init_types (void)
...
@@ -919,8 +919,6 @@ gfc_init_types (void)
gfc_max_array_element_size
gfc_max_array_element_size
=
build_int_cst_wide
(
long_unsigned_type_node
,
lo
,
hi
);
=
build_int_cst_wide
(
long_unsigned_type_node
,
lo
,
hi
);
size_type_node
=
gfc_array_index_type
;
boolean_type_node
=
gfc_get_logical_type
(
gfc_default_logical_kind
);
boolean_type_node
=
gfc_get_logical_type
(
gfc_default_logical_kind
);
boolean_true_node
=
build_int_cst
(
boolean_type_node
,
1
);
boolean_true_node
=
build_int_cst
(
boolean_type_node
,
1
);
boolean_false_node
=
build_int_cst
(
boolean_type_node
,
0
);
boolean_false_node
=
build_int_cst
(
boolean_type_node
,
0
);
...
...
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