Re: Removing RTTI from binaries

2015-01-15 Thread Mike via D.gnu
On Thursday, 15 January 2015 at 12:01:05 UTC, Johannes Pfau wrote: My best guess is that the strings are always placed in rodata, never in separate sections. If you do write("x"), "x" is also in rodata, the rodata section can't be removed. If you delete the write call there's no reference to

Re: Removing RTTI from binaries

2015-01-15 Thread Mike via D.gnu
On Sunday, 11 January 2015 at 16:57:41 UTC, Johannes Pfau wrote: If you only want to disable TypeInfo for some classes that's more difficult: https://github.com/D-Programming-microD/GDC/commit/f0614bc9480dacd1ec6bb75277d280afa96e08bb Is this good enough for a pull request upstream, or just a

Re: Removing RTTI from binaries

2015-01-15 Thread ketmar via D.gnu
On Thu, 15 Jan 2015 13:01:04 +0100 "Johannes Pfau via D.gnu" wrote: > After some google-fu: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=192 > Considering this was filed in 2000 I'd say it's not very likely to get > fixed soon :-( and it's so forgotten that they have stupid portostory attached

Re: Removing RTTI from binaries

2015-01-15 Thread Mike via D.gnu
On Thursday, 15 January 2015 at 12:01:05 UTC, Johannes Pfau wrote: After some google-fu: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=192 Considering this was filed in 2000 I'd say it's not very likely to get fixed soon :-( That looks right-on, and knowing the likely cause, I should able

Re: Removing RTTI from binaries

2015-01-15 Thread Dicebot via D.gnu
On Thursday, 15 January 2015 at 12:01:05 UTC, Johannes Pfau wrote: So the best option is probably to get rid of this problem by patching the compiler (@notypeinfo or -fnortti). Oh, sorry, I though GDC already does that when TypeInfo is never actually used. Nevermind then, your version seems t

Re: Removing RTTI from binaries

2015-01-15 Thread Johannes Pfau via D.gnu
Am Thu, 15 Jan 2015 11:51:41 + schrieb "Mike" : > On Thursday, 15 January 2015 at 11:42:31 UTC, Dicebot wrote: > > > > Random guess: can it possibly confuse template-based variadics > > with runtime variadics? Latter require RTTI to work. If > > something like that happens it is surely a bug

Re: Removing RTTI from binaries

2015-01-15 Thread Johannes Pfau via D.gnu
Am Thu, 15 Jan 2015 11:42:30 + schrieb "Dicebot" : > On Thursday, 15 January 2015 at 11:04:37 UTC, Mike wrote: > > If you can explain the mechanics causing this, please enlighten > > me. Bug? Enhancement? By design? > > Random guess: can it possibly confuse template-based variadics > with

Re: Removing RTTI from binaries

2015-01-15 Thread Mike via D.gnu
On Thursday, 15 January 2015 at 11:42:31 UTC, Dicebot wrote: Random guess: can it possibly confuse template-based variadics with runtime variadics? Latter require RTTI to work. If something like that happens it is surely a bug. Thanks for the reply. I have to apologize for the last post,

Re: Removing RTTI from binaries

2015-01-15 Thread Dicebot via D.gnu
On Thursday, 15 January 2015 at 11:04:37 UTC, Mike wrote: If you can explain the mechanics causing this, please enlighten me. Bug? Enhancement? By design? Random guess: can it possibly confuse template-based variadics with runtime variadics? Latter require RTTI to work. If something like tha

Re: Removing RTTI from binaries

2015-01-15 Thread Mike via D.gnu
On Wednesday, 14 January 2015 at 14:34:48 UTC, Mike wrote: I'll try to make a reduced test case on Linux that others can run and see. Ok, here's my reduced test case that runs on Linux 64-bit. I don't know if I really needed to implement the syscalls, but I just wanted to get rid of everyt