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
2bae939e
Commit
2bae939e
authored
May 22, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
From-SVN: r1050
parent
3251bd40
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
7 deletions
+30
-7
gcc/c-decl.c
+30
-7
No files found.
gcc/c-decl.c
View file @
2bae939e
...
...
@@ -1787,6 +1787,8 @@ pushdecl (x)
/* Maybe warn if shadowing something else. */
else
if
(
warn_shadow
&&
!
TREE_EXTERNAL
(
x
)
/* No shadow warnings for internally generated vars. */
&&
!
DECL_IGNORED_P
(
x
)
/* No shadow warnings for vars made for inlining. */
&&
!
DECL_FROM_INLINE
(
x
))
{
...
...
@@ -2595,19 +2597,19 @@ init_decl_processing ()
builtin_function ("__builtin_getman", double_ftype_double, BUILT_IN_GETMAN, 0);
#endif
/* Create the global binding
of _
_NAME__. */
declare_function_name
(
"top level"
);
/* Create the global binding
s of __NAME__ and __PRINTABLE
_NAME__. */
declare_function_name
(
"
"
,
"
top level"
);
start_identifier_warnings
();
init_format_info_table
();
}
/* Make
a binding for _
_NAME__. */
/* Make
bindings for __NAME__ and __PRINTABLE
_NAME__. */
static
void
declare_function_name
(
name
)
char
*
name
;
declare_function_name
(
name
,
printable_name
)
char
*
name
,
*
printable_name
;
{
tree
decl
,
init
;
...
...
@@ -2622,6 +2624,18 @@ declare_function_name (name)
TREE_TYPE
(
init
)
=
char_array_type_node
;
DECL_INITIAL
(
decl
)
=
init
;
finish_decl
(
decl
,
init
,
NULL_TREE
);
push_obstacks_nochange
();
decl
=
pushdecl
(
build_decl
(
VAR_DECL
,
get_identifier
(
"__PRINTABLE_NAME__"
),
char_array_type_node
));
TREE_STATIC
(
decl
)
=
1
;
TREE_READONLY
(
decl
)
=
1
;
DECL_IGNORED_P
(
decl
)
=
1
;
init
=
build_string
(
strlen
(
printable_name
)
+
1
,
printable_name
);
TREE_TYPE
(
init
)
=
char_array_type_node
;
DECL_INITIAL
(
decl
)
=
init
;
finish_decl
(
decl
,
init
,
NULL_TREE
);
}
/* Return a definition for a builtin function named NAME and whose data type
...
...
@@ -5473,8 +5487,17 @@ store_parm_decls ()
if
(
c_function_varargs
)
mark_varargs
();
/* Declare __NAME__ for this function. */
declare_function_name
(
IDENTIFIER_POINTER
(
DECL_NAME
(
current_function_decl
)));
/* Declare __NAME__ and __PRINTABLE_NAME__ for this function. */
{
char
*
kind
=
"function"
;
char
*
name
;
if
(
current_function_decl
!=
0
&&
TREE_CODE
(
TREE_TYPE
(
current_function_decl
))
==
METHOD_TYPE
)
kind
=
"method"
;
name
=
(
*
decl_printable_name
)
(
current_function_decl
,
&
kind
);
declare_function_name
(
name
,
IDENTIFIER_POINTER
(
DECL_NAME
(
current_function_decl
)));
}
/* Set up parameters and prepare for return, for the function. */
...
...
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