* -combine option for C++ sources
@ 2009-05-05 6:11 Pramod Joisha
2009-05-05 9:36 ` Richard Guenther
2009-05-05 14:30 ` Ian Lance Taylor
0 siblings, 2 replies; 4+ messages in thread
From: Pramod Joisha @ 2009-05-05 6:11 UTC (permalink / raw)
To: gcc
Presently, the -combine option works only for C sources. I was wondering whether there are technical reasons for not supporting it for C++ sources. If not, are there plans for providing this support in the near future?
Pramod
_________________________________________________________________
Insert movie times and more without leaving Hotmailآ®.
http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd1_052009
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: -combine option for C++ sources
2009-05-05 6:11 -combine option for C++ sources Pramod Joisha
@ 2009-05-05 9:36 ` Richard Guenther
2009-05-05 11:12 ` Joseph S. Myers
2009-05-05 14:30 ` Ian Lance Taylor
1 sibling, 1 reply; 4+ messages in thread
From: Richard Guenther @ 2009-05-05 9:36 UTC (permalink / raw)
To: pjoisha; +Cc: gcc
2009/5/5 Pramod Joisha <pramod_joisha@hotmail.com>:
>
>
> Presently, the -combine option works only for C sources. I was wondering whether there are technical reasons for not supporting it for C++ sources. If not, are there plans for providing this support in the near future?
As LTO will obsolete -combine I do not see that -combine will be
ever implemented for anything else besides C.
Richard.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Re: -combine option for C++ sources
2009-05-05 9:36 ` Richard Guenther
@ 2009-05-05 11:12 ` Joseph S. Myers
0 siblings, 0 replies; 4+ messages in thread
From: Joseph S. Myers @ 2009-05-05 11:12 UTC (permalink / raw)
To: Richard Guenther; +Cc: pjoisha, gcc
On Tue, 5 May 2009, Richard Guenther wrote:
> 2009/5/5 Pramod Joisha <pramod_joisha@hotmail.com>:
> >
> >
> > Presently, the -combine option works only for C sources. I was
> > wondering whether there are technical reasons for not supporting it
> > for C++ sources. If not, are there plans for providing this support in
> > the near future?
>
> As LTO will obsolete -combine I do not see that -combine will be
> ever implemented for anything else besides C.
Formally there are things -combine does that LTO doesn't
(front-end-specific consistency checks across translation units,
supporting non-ELF targets). But I agree we should deprecate -combine
when LTO goes in (or better, deprecate the mechanism it uses and make the
driver transparently wrap LTO if possible); the consistency checks might
better be done through plugins, and there should be no great difficulty in
adding LTO support for non-ELF targets (that support arbitrary named
sections) if desired.
(The C++ front end should still grow some sort of support for handling
information from multiple translation units at once to implement exported
templates, but that's another matter.)
--
Joseph S. Myers
joseph@codesourcery.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: -combine option for C++ sources
2009-05-05 6:11 -combine option for C++ sources Pramod Joisha
2009-05-05 9:36 ` Richard Guenther
@ 2009-05-05 14:30 ` Ian Lance Taylor
1 sibling, 0 replies; 4+ messages in thread
From: Ian Lance Taylor @ 2009-05-05 14:30 UTC (permalink / raw)
To: pjoisha; +Cc: gcc
Pramod Joisha <pramod_joisha@hotmail.com> writes:
> Presently, the -combine option works only for C sources. I was
> wondering whether there are technical reasons for not supporting it
> for C++ sources. If not, are there plans for providing this support in
> the near future?
As a historical note, Geoff Keating, who implemented -combine for C, was
working on -combine for C++ when his employer, Apple, decided to halt
contributions to gcc. I don't know how far he got or whether he would
be able to share his patches.
Ian
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-05-05 14:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-05 6:11 -combine option for C++ sources Pramod Joisha
2009-05-05 9:36 ` Richard Guenther
2009-05-05 11:12 ` Joseph S. Myers
2009-05-05 14:30 ` Ian Lance Taylor
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).