aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2015-12-10 13:46:38 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2015-12-10 13:46:38 +0000
commit2ade427a371fae5c7b2138cde1d33d6bcbb64bcf (patch)
tree1534cb93d421f86108a0803fe2b6d764c1f8c8e2 /gcc
parentdaf9817c1c929cdc23a520c5d6d599f52a5ed99c (diff)
downloadgcc-2ade427a371fae5c7b2138cde1d33d6bcbb64bcf.zip
gcc-2ade427a371fae5c7b2138cde1d33d6bcbb64bcf.tar.gz
gcc-2ade427a371fae5c7b2138cde1d33d6bcbb64bcf.tar.bz2
gigi.h (create_var_decl): Adjust comment.
* gcc-interface/gigi.h (create_var_decl): Adjust comment. (create_subprog_decl): Likewise. * gcc-interface/utils.c (create_var_decl): Likewise. (create_subprog_decl): Likewise. From-SVN: r231511
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ada/ChangeLog7
-rw-r--r--gcc/ada/gcc-interface/gigi.h18
-rw-r--r--gcc/ada/gcc-interface/utils.c10
3 files changed, 27 insertions, 8 deletions
diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog
index 4ad9344..955f036 100644
--- a/gcc/ada/ChangeLog
+++ b/gcc/ada/ChangeLog
@@ -1,3 +1,10 @@
+2015-12-10 Eric Botcazou <ebotcazou@adacore.com>
+
+ * gcc-interface/gigi.h (create_var_decl): Adjust comment.
+ (create_subprog_decl): Likewise.
+ * gcc-interface/utils.c (create_var_decl): Likewise.
+ (create_subprog_decl): Likewise.
+
2015-12-10 Tom de Vries <tom@codesourcery.com>
PR ada/65102
diff --git a/gcc/ada/gcc-interface/gigi.h b/gcc/ada/gcc-interface/gigi.h
index a6c7d42..cef9341 100644
--- a/gcc/ada/gcc-interface/gigi.h
+++ b/gcc/ada/gcc-interface/gigi.h
@@ -678,11 +678,11 @@ extern tree create_type_decl (tree name, tree type, bool artificial_p,
CONST_FLAG is true if this variable is constant, in which case we might
return a CONST_DECL node unless CONST_DECL_ALLOWED_P is false.
- PUBLIC_FLAG is true if this definition is to be made visible outside of
- the current compilation unit. This flag should be set when processing the
- variable definitions in a package specification.
+ PUBLIC_FLAG is true if this is for a reference to a public entity or for a
+ definition to be made visible outside of the current compilation unit, for
+ instance variable definitions in a package specification.
- EXTERN_FLAG is nonzero when processing an external variable declaration (as
+ EXTERN_FLAG is true when processing an external variable declaration (as
opposed to a definition: no storage is to be allocated for the variable).
STATIC_FLAG is only relevant when not at top level and indicates whether
@@ -694,6 +694,8 @@ extern tree create_type_decl (tree name, tree type, bool artificial_p,
DEBUG_INFO_P is true if we need to write debug information for it.
+ ATTR_LIST is the list of attributes to be attached to the variable.
+
GNAT_NODE is used for the position of the decl. */
extern tree create_var_decl (tree name, tree asm_name, tree type, tree init,
bool const_flag, bool public_flag,
@@ -728,13 +730,17 @@ extern tree create_label_decl (tree name, Node_Id gnat_node);
the list of its parameters (a list of PARM_DECL nodes chained through the
DECL_CHAIN field).
- INLINE_STATUS, CONST_FLAG, PUBLIC_FLAG, EXTERN_FLAG, VOLATILE_FLAG as well
- as ATTR_LIST are used to set the appropriate fields in the FUNCTION_DECL.
+ INLINE_STATUS describes the inline flags to be set on the FUNCTION_DECL.
+
+ CONST_FLAG, PUBLIC_FLAG, EXTERN_FLAG, VOLATILE_FLAG are used to set the
+ appropriate flags on the FUNCTION_DECL.
ARTIFICIAL_P is true if the subprogram was generated by the compiler.
DEBUG_INFO_P is true if we need to write debug information for it.
+ ATTR_LIST is the list of attributes to be attached to the subprogram.
+
GNAT_NODE is used for the position of the decl. */
extern tree create_subprog_decl (tree name, tree asm_name, tree type,
tree param_decl_list,
diff --git a/gcc/ada/gcc-interface/utils.c b/gcc/ada/gcc-interface/utils.c
index 10d3e22..23015f3 100644
--- a/gcc/ada/gcc-interface/utils.c
+++ b/gcc/ada/gcc-interface/utils.c
@@ -2344,6 +2344,8 @@ create_type_decl (tree name, tree type, bool artificial_p, bool debug_info_p,
DEBUG_INFO_P is true if we need to write debug information for it.
+ ATTR_LIST is the list of attributes to be attached to the variable.
+
GNAT_NODE is used for the position of the decl. */
tree
@@ -3048,13 +3050,17 @@ create_label_decl (tree name, Node_Id gnat_node)
the list of its parameters (a list of PARM_DECL nodes chained through the
DECL_CHAIN field).
- INLINE_STATUS, CONST_FLAG, PUBLIC_FLAG, EXTERN_FLAG, VOLATILE_FLAG as well
- as ATTR_LIST are used to set the appropriate fields in the FUNCTION_DECL.
+ INLINE_STATUS describes the inline flags to be set on the FUNCTION_DECL.
+
+ CONST_FLAG, PUBLIC_FLAG, EXTERN_FLAG, VOLATILE_FLAG are used to set the
+ appropriate flags on the FUNCTION_DECL.
ARTIFICIAL_P is true if the subprogram was generated by the compiler.
DEBUG_INFO_P is true if we need to write debug information for it.
+ ATTR_LIST is the list of attributes to be attached to the subprogram.
+
GNAT_NODE is used for the position of the decl. */
tree