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
b032c74c
Commit
b032c74c
authored
May 22, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
From-SVN: r1053
parent
7da551a2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
11 deletions
+6
-11
gcc/c-common.c
+3
-5
gcc/c-decl.c
+3
-6
No files found.
gcc/c-common.c
View file @
b032c74c
...
@@ -27,7 +27,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
...
@@ -27,7 +27,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#undef NULL
#undef NULL
#define NULL 0
#define NULL 0
/* Make bindings for __
NAME__ and __PRINTABLE_NAME
__. */
/* Make bindings for __
FUNCTION__ and __PRETTY_FUNCTION
__. */
void
void
declare_function_name
()
declare_function_name
()
...
@@ -50,11 +50,10 @@ declare_function_name ()
...
@@ -50,11 +50,10 @@ declare_function_name ()
}
}
push_obstacks_nochange
();
push_obstacks_nochange
();
decl
=
build_decl
(
VAR_DECL
,
get_identifier
(
"__
NAME
__"
),
decl
=
build_decl
(
VAR_DECL
,
get_identifier
(
"__
FUNCTION
__"
),
char_array_type_node
);
char_array_type_node
);
TREE_STATIC
(
decl
)
=
1
;
TREE_STATIC
(
decl
)
=
1
;
TREE_READONLY
(
decl
)
=
1
;
TREE_READONLY
(
decl
)
=
1
;
TREE_NO_UNUSED_WARNING
(
decl
)
=
1
;
DECL_IGNORED_P
(
decl
)
=
1
;
DECL_IGNORED_P
(
decl
)
=
1
;
init
=
build_string
(
strlen
(
name
)
+
1
,
name
);
init
=
build_string
(
strlen
(
name
)
+
1
,
name
);
TREE_TYPE
(
init
)
=
char_array_type_node
;
TREE_TYPE
(
init
)
=
char_array_type_node
;
...
@@ -62,11 +61,10 @@ declare_function_name ()
...
@@ -62,11 +61,10 @@ declare_function_name ()
finish_decl
(
pushdecl
(
decl
),
init
,
NULL_TREE
);
finish_decl
(
pushdecl
(
decl
),
init
,
NULL_TREE
);
push_obstacks_nochange
();
push_obstacks_nochange
();
decl
=
build_decl
(
VAR_DECL
,
get_identifier
(
"__PR
INTABLE_NAME
__"
),
decl
=
build_decl
(
VAR_DECL
,
get_identifier
(
"__PR
ETTY_FUNCTION
__"
),
char_array_type_node
);
char_array_type_node
);
TREE_STATIC
(
decl
)
=
1
;
TREE_STATIC
(
decl
)
=
1
;
TREE_READONLY
(
decl
)
=
1
;
TREE_READONLY
(
decl
)
=
1
;
TREE_NO_UNUSED_WARNING
(
decl
)
=
1
;
DECL_IGNORED_P
(
decl
)
=
1
;
DECL_IGNORED_P
(
decl
)
=
1
;
init
=
build_string
(
strlen
(
printable_name
)
+
1
,
printable_name
);
init
=
build_string
(
strlen
(
printable_name
)
+
1
,
printable_name
);
TREE_TYPE
(
init
)
=
char_array_type_node
;
TREE_TYPE
(
init
)
=
char_array_type_node
;
...
...
gcc/c-decl.c
View file @
b032c74c
...
@@ -1789,10 +1789,7 @@ pushdecl (x)
...
@@ -1789,10 +1789,7 @@ pushdecl (x)
/* No shadow warnings for internally generated vars. */
/* No shadow warnings for internally generated vars. */
&&
!
DECL_IGNORED_P
(
x
)
&&
!
DECL_IGNORED_P
(
x
)
/* No shadow warnings for vars made for inlining. */
/* No shadow warnings for vars made for inlining. */
&&
!
DECL_FROM_INLINE
(
x
)
&&
!
DECL_FROM_INLINE
(
x
))
/* No shadow warnings for user-invisible decls. */
&&
!
(
TREE_CODE
(
x
)
==
VAR_DECL
&&
DECL_IGNORED_P
(
x
)
&&
TREE_READONLY
(
x
)))
{
{
char
*
warnstring
=
0
;
char
*
warnstring
=
0
;
...
@@ -2599,7 +2596,7 @@ init_decl_processing ()
...
@@ -2599,7 +2596,7 @@ init_decl_processing ()
builtin_function ("__builtin_getman", double_ftype_double, BUILT_IN_GETMAN, 0);
builtin_function ("__builtin_getman", double_ftype_double, BUILT_IN_GETMAN, 0);
#endif
#endif
/* Create the global bindings
of __NAME__ and __PRINTABLE_NAME
__. */
/* Create the global bindings
for __FUNCTION__ and __PRETTY_FUNCTION
__. */
declare_function_name
();
declare_function_name
();
start_identifier_warnings
();
start_identifier_warnings
();
...
@@ -5456,7 +5453,7 @@ store_parm_decls ()
...
@@ -5456,7 +5453,7 @@ store_parm_decls ()
if
(
c_function_varargs
)
if
(
c_function_varargs
)
mark_varargs
();
mark_varargs
();
/* Declare __
NAME__ and __PRINTABLE_NAME
__ for this function. */
/* Declare __
FUNCTION__ and __PRETTY_FUNCTION
__ for this function. */
declare_function_name
();
declare_function_name
();
...
...
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