summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authornickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>1998-10-01 10:44:46 +0000
committernickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>1998-10-01 10:44:46 +0000
commit2ebda888fcd6502d6f6074956be683798967e4c6 (patch)
treebd0cd9f928875af646aff412d4d1e935366f135d /gcc
parent6a780f1a69766fd3888606a25e10a22745e0beac (diff)
downloadgcc-2ebda888fcd6502d6f6074956be683798967e4c6.tar.gz
Add invocation of SET_DEFAULT_DECL_ATTRIBUTES, if defined.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22709 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog8
-rw-r--r--gcc/c-decl.c4
-rw-r--r--gcc/cp/ChangeLog7
-rw-r--r--gcc/cp/decl.c11
-rw-r--r--gcc/tm.texi5
5 files changed, 29 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 2ba55393a49..ebd5b50a372 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,11 @@
+Thu Oct 1 10:42:27 1998 Nick Clifton <nickc@cygnus.com>
+
+ * c-decl.c (start_function): Add invocation of
+ SET_DEFAULT_DECL_ATTRIBUTES, if defined.
+
+ * tm.texi: Remove description of non-existant macro
+ SET_DEFAULT_SECTION_NAME.
+
Wed Sep 30 22:27:53 1998 Robert Lipe <robertl@dgii.com>
* config.sub: Recognize i[34567]86-pc-udk as new target.
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index f05dc27a1a7..0b6e0186225 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -6423,6 +6423,10 @@ start_function (declspecs, declarator, prefix_attributes, attributes, nested)
except for defining how to inline. So set DECL_EXTERNAL in that case. */
DECL_EXTERNAL (decl1) = current_extern_inline;
+#ifdef SET_DEFAULT_DECL_ATTRIBUTES
+ SET_DEFAULT_DECL_ATTRIBUTES (decl1, attributes);
+#endif
+
/* This function exists in static storage.
(This does not mean `static' in the C sense!) */
TREE_STATIC (decl1) = 1;
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index c095d307f7e..61c67f12962 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,10 @@
+Thu Oct 1 10:43:45 1998 Nick Clifton <nickc@cygnus.com>
+
+ * decl.c (start_decl): Add invocation of
+ SET_DEFAULT_DECL_ATTRIBUTES, if defined.
+ (start_function): Add invocation of
+ SET_DEFAULT_DECL_ATTRIBUTES, if defined.
+
1998-09-28 Anthony Green <green@cygnus.com>
* semantics.c (finish_asm_stmt): Always permit volatile asms.
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index 582bd66488a..abc99c9d988 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -6618,6 +6618,10 @@ start_decl (declarator, declspecs, initialized, attributes, prefix_attributes)
pushclass (context, 2);
}
+#ifdef SET_DEFAULT_DECL_ATTRIBUTES
+ SET_DEFAULT_DECL_ATTRIBUTES (decl, attributes);
+#endif
+
/* Set attributes here so if duplicate decl, will have proper attributes. */
cplus_decl_attributes (decl, attributes, prefix_attributes);
@@ -6660,7 +6664,7 @@ start_decl (declarator, declspecs, initialized, attributes, prefix_attributes)
data segment. */
DECL_COMMON (tem) = flag_conserve_space || ! TREE_PUBLIC (tem);
#endif
-
+
if (! processing_template_decl)
start_decl_1 (tem);
@@ -12390,6 +12394,10 @@ start_function (declspecs, declarator, attrs, pre_parsed_p)
error_mark_node is replaced below (in poplevel) with the BLOCK. */
DECL_INITIAL (decl1) = error_mark_node;
+#ifdef SET_DEFAULT_DECL_ATTRIBUTES
+ SET_DEFAULT_DECL_ATTRIBUTES (decl1, attributes);
+#endif
+
/* This function exists in static storage.
(This does not mean `static' in the C sense!) */
TREE_STATIC (decl1) = 1;
@@ -12533,6 +12541,7 @@ start_function (declspecs, declarator, attrs, pre_parsed_p)
if (attrs)
cplus_decl_attributes (decl1, NULL_TREE, attrs);
+
make_function_rtl (decl1);
/* Promote the value to int before returning it. */
diff --git a/gcc/tm.texi b/gcc/tm.texi
index 463ae8ef6c0..0378bc8f233 100644
--- a/gcc/tm.texi
+++ b/gcc/tm.texi
@@ -7427,11 +7427,6 @@ declaration, but before the declaration proper.
If defined, a C statement that assigns default attributes to
newly defined @var{decl}.
-@findex SET_DEFAULT_SECTION_NAME
-@item SET_DEFAULT_SECTION_NAME (@var{decl})
-If defined, a C statement that assigns a section name to the newly
-created @var{decl}.
-
@findex DOLLARS_IN_IDENTIFIERS
@item DOLLARS_IN_IDENTIFIERS
Define this macro to control use of the character @samp{$} in identifier