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
3a846e6e
Commit
3a846e6e
authored
Oct 01, 1998
by
Nick Clifton
Committed by
Nick Clifton
Oct 01, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add invocation of SET_DEFAULT_DECL_ATTRIBUTES, if defined.
From-SVN: r22709
parent
047fb009
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
6 deletions
+29
-6
gcc/ChangeLog
+8
-0
gcc/c-decl.c
+4
-0
gcc/cp/ChangeLog
+7
-0
gcc/cp/decl.c
+10
-1
gcc/tm.texi
+0
-5
No files found.
gcc/ChangeLog
View file @
3a846e6e
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
.
...
...
gcc/c-decl.c
View file @
3a846e6e
...
...
@@ -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
;
...
...
gcc/cp/ChangeLog
View file @
3a846e6e
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.
...
...
gcc/cp/decl.c
View file @
3a846e6e
...
...
@@ -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. */
...
...
gcc/tm.texi
View file @
3a846e6e
...
...
@@ -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
...
...
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