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
3b9e8343
Commit
3b9e8343
authored
Jan 18, 2010
by
Eric Botcazou
Committed by
Eric Botcazou
Jan 18, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gcc-interface/utils.c (create_var_decl_1): Fix formatting nits.
From-SVN: r156018
parent
f249b405
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
gcc/ada/ChangeLog
+4
-0
gcc/ada/gcc-interface/utils.c
+4
-3
No files found.
gcc/ada/ChangeLog
View file @
3b9e8343
2010-01-18 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/utils.c (create_var_decl_1): Fix formatting nits.
2010-01-18 Jan Hubicka <jh@suse.cz>
PR middle-end/42068
...
...
gcc/ada/gcc-interface/utils.c
View file @
3b9e8343
...
...
@@ -6,7 +6,7 @@
* *
* C Implementation File *
* *
* Copyright (C) 1992-20
09
, Free Software Foundation, Inc. *
* Copyright (C) 1992-20
10
, Free Software Foundation, Inc. *
* *
* GNAT is free software; you can redistribute it and/or modify it under *
* terms of the GNU General Public License as published by the Free Soft- *
...
...
@@ -1385,8 +1385,9 @@ create_var_decl_1 (tree var_name, tree asm_name, tree type, tree var_init,
/* At the global level, an initializer requiring code to be generated
produces elaboration statements. Check that such statements are allowed,
that is, not violating a No_Elaboration_Code restriction. */
if
(
global_bindings_p
()
&&
var_init
!=
0
&&
!
init_const
)
if
(
global_bindings_p
()
&&
var_init
!=
0
&&
!
init_const
)
Check_Elaboration_Code_Allowed
(
gnat_node
);
DECL_INITIAL
(
var_decl
)
=
var_init
;
TREE_READONLY
(
var_decl
)
=
const_flag
;
DECL_EXTERNAL
(
var_decl
)
=
extern_flag
;
...
...
@@ -1401,7 +1402,7 @@ create_var_decl_1 (tree var_name, tree asm_name, tree type, tree var_init,
go in DATA instead, thus increasing the size of the executable. */
if
(
!
flag_no_common
&&
TREE_CODE
(
var_decl
)
==
VAR_DECL
&&
TREE_PUBLIC
(
var_decl
)
&&
TREE_PUBLIC
(
var_decl
)
&&
!
have_global_bss_p
())
DECL_COMMON
(
var_decl
)
=
1
;
...
...
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