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
94706a5c
Commit
94706a5c
authored
Oct 16, 1998
by
Jason Merrill
Committed by
Jason Merrill
Oct 15, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* decl.c (grokfndecl): Also check ctype when checking for ::main().
From-SVN: r23123
parent
925be47c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
gcc/cp/ChangeLog
+4
-0
gcc/cp/decl.c
+1
-0
No files found.
gcc/cp/ChangeLog
View file @
94706a5c
1998-10-16 Jason Merrill <jason@yorick.cygnus.com>
* decl.c (grokfndecl): Also check ctype when checking for ::main().
1998-10-15 Jason Merrill <jason@yorick.cygnus.com>
1998-10-15 Jason Merrill <jason@yorick.cygnus.com>
* decl.c (grokfndecl): ::main and __builtin_* get C linkage.
* decl.c (grokfndecl): ::main and __builtin_* get C linkage.
...
...
gcc/cp/decl.c
View file @
94706a5c
...
@@ -8026,6 +8026,7 @@ grokfndecl (ctype, type, declarator, orig_declarator, virtualp, flags, quals,
...
@@ -8026,6 +8026,7 @@ grokfndecl (ctype, type, declarator, orig_declarator, virtualp, flags, quals,
/* context == 0 could mean global scope or not set yet; either is fine
/* context == 0 could mean global scope or not set yet; either is fine
for us here, as we check current_namespace. */
for us here, as we check current_namespace. */
&&
DECL_CONTEXT
(
decl
)
==
NULL_TREE
&&
DECL_CONTEXT
(
decl
)
==
NULL_TREE
&&
ctype
==
NULL_TREE
&&
current_namespace
==
global_namespace
)
&&
current_namespace
==
global_namespace
)
DECL_LANGUAGE
(
decl
)
=
lang_c
;
DECL_LANGUAGE
(
decl
)
=
lang_c
;
...
...
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