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
e2fd1d94
Commit
e2fd1d94
authored
Sep 10, 1994
by
Jason Merrill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(expand_main_function): Don't call __main if
HAS_INIT_SECTION is defined. From-SVN: r8067
parent
54190234
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
gcc/function.c
+7
-2
No files found.
gcc/function.c
View file @
e2fd1d94
...
...
@@ -4700,6 +4700,11 @@ mark_varargs ()
/* Expand a call to __main at the beginning of a possible main function. */
#if defined(INIT_SECTION_ASM_OP) && !defined(INVOKE__main)
#undef HAS_INIT_SECTION
#define HAS_INIT_SECTION
#endif
void
expand_main_function
()
{
...
...
@@ -4707,10 +4712,10 @@ expand_main_function ()
{
/* The zero below avoids a possible parse error */
0
;
#if !defined (
INIT_SECTION_ASM_OP) || defined (INVOKE__main
)
#if !defined (
HAS_INIT_SECTION
)
emit_library_call
(
gen_rtx
(
SYMBOL_REF
,
Pmode
,
NAME__MAIN
),
0
,
VOIDmode
,
0
);
#endif
/* not
INIT_SECTION_ASM_OP or INVOKE__main
*/
#endif
/* not
HAS_INIT_SECTION
*/
}
}
...
...
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