public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug d/102476] New: d: Options -fmain and -fno-druntime do not work together
@ 2021-09-24 9:10 ibuclaw at gdcproject dot org
2021-09-30 16:41 ` [Bug d/102476] " cvs-commit at gcc dot gnu.org
2021-09-30 16:42 ` ibuclaw at gdcproject dot org
0 siblings, 2 replies; 3+ messages in thread
From: ibuclaw at gdcproject dot org @ 2021-09-24 9:10 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102476
Bug ID: 102476
Summary: d: Options -fmain and -fno-druntime do not work
together
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: d
Assignee: ibuclaw at gdcproject dot org
Reporter: ibuclaw at gdcproject dot org
Target Milestone: ---
The option `-fmain' reads in a __main.di module from D runtime that defines an
extern(D) main function. This causes link-time errors when building without D
runtime.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug d/102476] d: Options -fmain and -fno-druntime do not work together
2021-09-24 9:10 [Bug d/102476] New: d: Options -fmain and -fno-druntime do not work together ibuclaw at gdcproject dot org
@ 2021-09-30 16:41 ` cvs-commit at gcc dot gnu.org
2021-09-30 16:42 ` ibuclaw at gdcproject dot org
1 sibling, 0 replies; 3+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-09-30 16:41 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102476
--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Iain Buclaw <ibuclaw@gcc.gnu.org>:
https://gcc.gnu.org/g:d46a29d919058fb383d19fe35c234fab58286f71
commit r12-3985-gd46a29d919058fb383d19fe35c234fab58286f71
Author: Iain Buclaw <ibuclaw@gdcproject.org>
Date: Fri Sep 24 10:59:47 2021 +0200
libphobos: Define main function as extern(C) when compiling without D
runtime (PR102476)
The default supplied main function as read when compiling with `-fmain'
has extern(D) linkage. However this does not work when mixing this
option together with `-fno-druntime'.
PR d/102476
gcc/testsuite/ChangeLog:
* gdc.dg/pr102476.d: New test.
libphobos/ChangeLog:
* libdruntime/__main.di: Define main function as extern(C) when
compiling without D runtime.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug d/102476] d: Options -fmain and -fno-druntime do not work together
2021-09-24 9:10 [Bug d/102476] New: d: Options -fmain and -fno-druntime do not work together ibuclaw at gdcproject dot org
2021-09-30 16:41 ` [Bug d/102476] " cvs-commit at gcc dot gnu.org
@ 2021-09-30 16:42 ` ibuclaw at gdcproject dot org
1 sibling, 0 replies; 3+ messages in thread
From: ibuclaw at gdcproject dot org @ 2021-09-30 16:42 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102476
Iain Buclaw <ibuclaw at gdcproject dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from Iain Buclaw <ibuclaw at gdcproject dot org> ---
Fix committed.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-09-30 16:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-24 9:10 [Bug d/102476] New: d: Options -fmain and -fno-druntime do not work together ibuclaw at gdcproject dot org
2021-09-30 16:41 ` [Bug d/102476] " cvs-commit at gcc dot gnu.org
2021-09-30 16:42 ` ibuclaw at gdcproject dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).