Am Sat, 09 Nov 2019 20:43:20 + schrieb Per Nordlöw:
> I've noticed that the make flag ENABLE_LTO=1 fails as
>
> Error: unrecognized switch '-flto=full'
>
> when building dmd with GDC 9.
>
> Does gdc-9 support lto? If so what flags should I use?
>
> If not what are the preferred DFLAGS
Am Tue, 30 Jul 2019 15:19:44 +1200 schrieb rikki cattermole:
> On 30/07/2019 4:11 AM, Eduard Staniloiu wrote:
>> Cheers, everybody
>>
>> I'm working on this as part of my GSoC project [0].
>>
>> I'm working on building gdc with the auto-generated `frontend.h` [1],
>> but I'm having some issues
>
On Thursday, 21 March 2019 at 08:19:56 UTC, Per Nordlöw wrote:
At
https://github.com/D-Programming-GDC/GDC/commits/master
there's the heading
"This repository has been archived by the owner. It is now
read-only."
Where will the development of GDC continue?
We use https://github.com/D-Prog
Am Tue, 17 Jul 2018 04:51:04 + schrieb Cecil Ward:
> I am getting an error when I try and compile anything with the GDC
> compiler which is coming up associated with source code within a D
> include file which is not one of mine
>
> I am using a Raspberry Pi with Ubuntu 16.04 and have just do
Am Sun, 14 May 2017 15:05:08 +
schrieb Richard Delorme :
> I recently bought the infamous Raspberry pi 3, which has got a
> cortex-a53 4 cores 1.2 Ghz CPU (Broadcom). After installing on it
> a 64 bit OS (a non official fedora 25), I was wondering if it was
> possible to install a D compile
Am Wed, 19 Jul 2017 19:18:03 +
schrieb Petar Kirov [ZombineDev] :
> On Wednesday, 19 July 2017 at 18:49:32 UTC, Johannes Pfau wrote:
> >
> > Can you explain why _object-level visibility_ would matter in
> > this case?
>
> (I'm sure you have more experience with shared libraries than me,
>
Am Wed, 19 Jul 2017 17:37:48 +
schrieb Kagamin :
> On Wednesday, 19 July 2017 at 15:28:50 UTC, Steven Schveighoffer
> wrote:
> > I'm not so sure of that. Private functions still generate
> > symbols. I think in C, there is no symbol (at least in the
> > object file) for static functions or
Am Wed, 19 Jul 2017 17:25:18 +
schrieb Petar Kirov [ZombineDev] :
> >
> > Note: not 100% sure of all this, but this is always the way
> > I've looked at it.
>
> You're probably right about the current implementation, but I was
> talking about the intended semantics. I believe that with D
On Wednesday, 19 July 2017 at 15:28:50 UTC, Steven Schveighoffer
wrote:
On 7/19/17 8:16 AM, Petar Kirov [ZombineDev] wrote:
On Wednesday, 19 July 2017 at 12:11:38 UTC, John Burton wrote:
On Wednesday, 19 July 2017 at 12:05:09 UTC, Kagamin wrote:
Try a newer compiler, this was fixed recently.
Am Mon, 01 May 2017 21:01:43 +
schrieb notna :
> Hi Dlander's.
>
> Found some interesting reads ([1] [2] [3]) about the $SUBJECT and
> wonder if there is anything available in the Dland?!
>
> If yes, pls. share.
> If not, how could it be done (D'ish)
>
> [1] -
> https://moinakg.wordpress.
Am Sat, 15 Apr 2017 14:01:51 +
schrieb DRex :
> On Saturday, 15 April 2017 at 13:08:29 UTC, DRex wrote:
> > On Saturday, 15 April 2017 at 13:02:43 UTC, DRex wrote:
> >> On Saturday, 15 April 2017 at 12:45:47 UTC, DRex wrote:
> >
> > Update to the Update,
> >
> > I fixed the lib failing to
Am Fri, 14 Apr 2017 13:03:22 +
schrieb DRex :
> On Friday, 14 April 2017 at 12:01:39 UTC, DRex wrote:
> >
> > the -r option redirects the linked object files into another
> > object file, so the point being I can pass a D object and a C
> > object to the linker and produce another object fil
Am Fri, 14 Apr 2017 13:41:45 +
schrieb Moritz Maxeiner :
> On Friday, 14 April 2017 at 11:29:03 UTC, Johannes Pfau wrote:
> >
> > Is there some way to wrap the 'type selection'? In pseudo-code
> > something like this:
> >
> > enum FilteredOverloads(API) = ...
> >
> > foreach(Overload, Filtere
Am Fri, 14 Apr 2017 08:55:48 +
schrieb Moritz Maxeiner :
>
> mixin Foo!(API, (MethodType) {
> // function dependent code here
> });
> foo();
> ---
>
> Option 2: Code generation using CTFE
>
> ---
> string genFoo(alias API, string justDoIt)
> {
> import std.array : appender;
> auto
I've got this code duplicated in quite some functions:
-
foreach (member; __traits(derivedMembers, API))
{
// Guards against private members
static if (__traits(compiles, __traits(getMember, API, member)))
{
static if (isSomeFunction!(__traits(getMember, API
Am Sun, 12 Mar 2017 12:09:01 +
schrieb Russel Winder via Digitalmars-d-learn
:
> Hi,
>
> ldc2 has the -unittest --main options to compile a file that has
> unittests and no main so as to create a test executable. What causes
> the same behaviour with gdc?
>
https://github.com/D-Programming-
Am Tue, 14 Feb 2017 14:38:32 +
schrieb Kagamin :
> On Tuesday, 14 February 2017 at 10:52:37 UTC, Johannes Pfau wrote:
> > I remember some discussions about this some years ago and IIRC
> > the final decision was that the compiler will not magically
> > insert any barriers for shared variable
Am Tue, 14 Feb 2017 13:01:44 +
schrieb Moritz Maxeiner :
>
> It's not supposed to. Also, your example does not implement the
> same semantics as what I posted and yes, in your example, there's
> no need for memory barriers. In the example I posted,
> synchronization is not necessary, mem
Am Mon, 13 Feb 2017 17:44:10 +
schrieb Moritz Maxeiner :
> > Thread unsafe methods shouldn't be marked shared, it doesn't
> > make sense. If you don't want to provide thread-safe interface,
> > don't mark methods as shared, so they will not be callable on a
> > shared instance and thus the
Am Sun, 25 Sep 2016 16:23:11 +
schrieb Matthias Klumpp :
> Hello!
> I am working together with others on the D-based
> appstream-generator[1] project, which is generating software
> metadata for "software centers" and other package-manager
> functionality on Linux distributions, and is used
Am Tue, 30 Aug 2016 16:37:53 +
schrieb Cauterite :
> On Tuesday, 30 August 2016 at 14:38:47 UTC, Nordlöw wrote:
> > Just being able to print a string is not good enough. I want
> > the variadic part writeln so I can debug-print values in my
> > buggy code. Do you have a similar solution?
>
Am Tue, 30 Aug 2016 10:26:28 +
schrieb Nordlöw :
> I'm struggling with debug printing in my @nogc-containers.
>
> The alternatives:
>
> assert(false, "Fixed message with no parameters");
>
> is not enough for my needs
>
> debug writeln("Fixed");
>
> doesn't bypass @nogc checking
Am Fri, 22 Jul 2016 01:48:52 +
schrieb Rufus Smith :
> I would like to combine two types
>
>
> template Foo(A, B = 4)
> {
> union
> {
> byte b = B;
> int a = A << 8;
> }
> }
>
>
> I get an error about overlapping default initialization. They
> don't actually
Am Tue, 5 Jul 2016 00:37:54 -0700
schrieb Ali Çehreli :
> On 07/04/2016 08:32 PM, WhatMeWorry wrote:
>
> > /usr/bin/ld: cannot find -lsqlite3
> > collect2: error: ld returned 1 exit status
>
> I had the same issue when building Button with dub on Ubuntu 16.04.
> My hack was to create the fol
Am Tue, 21 Jun 2016 03:01:39 +
schrieb Vladimir Panteleev :
>
> As I recently learned, there's also signalfd. With that, had
> Vibe.d had a primitive to wrap a file descriptor into a stream it
> can manage, it would be as simple as reading from it. But it
> doesn't seem to have one so I gu
On Thursday, 11 February 2016 at 07:41:55 UTC, Enjoys Math wrote:
If I just type out sqrt(2.0) in D, is that automatically made
into a constant for me?
Thanks.
For GDC the answer is yes:
http://explore.dgnu.org/#%7B%22version%22%3A3%2C%22filterAsm%22%3A%7B%22labels%22%3Atrue%2C%22directives%2
Am Sat, 30 Jan 2016 01:17:13 +
schrieb Mike Parker :
> On Friday, 29 January 2016 at 19:46:40 UTC, Johannes Pfau wrote:
>
> > Now on windows, things are more complicated. First of all, I
> > can't seem
> > to simply use "libs": ["foo"] as the linker won't find the C
> > import .lib file. The
Am Fri, 29 Jan 2016 18:58:17 -0500
schrieb Steven Schveighoffer :
> On 1/29/16 6:03 PM, Marek Janukowicz wrote:
> > On Fri, 29 Jan 2016 17:43:26 -0500, Steven Schveighoffer wrote:
> >>> Is there anything I should know about UTF endianess?
> >>
> >> It's not any different from other endianness.
Am Fri, 29 Jan 2016 20:46:40 +0100
schrieb Johannes Pfau :
> DFLAGS="-m32mscoff" doesn't work with dub test as the dub test
> command ignores the DFLAGS variable. I'd have to check whether it
> works for applications, but then there's still no way to use the
> correct cairo import library
I want to add proper windows support to the cairoD dub package. cairoD
is a wrapper for the [cairo](http://cairographics.org/) C library. As
it can be difficult to obtain cairo DLLs on windows I want to ship
these DLLs with cairoD. It is also possible to enable or disable
additional cairo features.
Am Sat, 16 Jan 2016 18:05:46 +
schrieb Samson Smith :
> On Saturday, 16 January 2016 at 16:28:21 UTC, Jonathan M Davis
> wrote:
> >
> > But it will be less error-prone to use those functions, and if
> > you _do_ actually need to swap endianness, then they're exactly
> > what you should be u
Am Sat, 16 Jan 2016 15:46:00 +
schrieb Samson Smith :
> On Saturday, 16 January 2016 at 14:42:27 UTC, Yazan D wrote:
> > On Sat, 16 Jan 2016 14:34:54 +, Samson Smith wrote:
> >
> >> [...]
> >
> > You can do this:
> > ubyte[] b = (cast(ubyte*) &a)[0 .. int.sizeof];
> >
> > It is casting
Am Mon, 21 Dec 2015 23:29:14 +
schrieb Adam D. Ruppe :
> On Monday, 21 December 2015 at 23:17:45 UTC, Daniel Kozák wrote:
> > If you want to reinvent the wheel you can use
>
> [...] it isn't like the bundled functions with the OS are
> hard to use [...]
>
epoll and similar interfaces are
Am Thu, 01 Oct 2015 12:04:38 +
schrieb NX :
> Windows X86 64bit (x86_64-w64-mingw32)
>
> Standard builds
> TargetDMDFE Runtime
> GCC GDC revisionBuild Date arm-linux-gnueabi
> 2.066.1 yes 5.2.0 dadb5a3784
> 2015-08-30 arm-linux-gnuea
Am Tue, 29 Sep 2015 15:10:58 -0400
schrieb Steven Schveighoffer :
>
> > 3) Why do I have to pass a "Mutex" to "Condition"? Why can't I just
> > pass an "Object"?
>
> An object that implements the Monitor interface may not actually be a
> mutex. For example, a pthread_cond_t requires a pthread_m
Am Tue, 22 Sep 2015 14:40:43 +
schrieb John Colvin :
> On Tuesday, 22 September 2015 at 14:37:11 UTC, Russel Winder
> wrote:
> > On Sun, 2015-09-20 at 17:47 +0200, Johannes Pfau via
> > Digitalmars-d -learn wrote:
> >> [...]
> > […]
> >> [...]
>
Am Sun, 20 Sep 2015 17:47:00 +0200
schrieb Johannes Pfau :
> Am Sat, 19 Sep 2015 17:41:41 +0100
> schrieb Russel Winder via Digitalmars-d-learn
> :
>
> > On Sat, 2015-09-19 at 16:33 +, John Colvin via
> > Digitalmars-d-learn wrote:
> > > On Saturday, 19 September 2015 at 16:15:45 UTC, Russel
Am Sat, 19 Sep 2015 17:41:41 +0100
schrieb Russel Winder via Digitalmars-d-learn
:
> On Sat, 2015-09-19 at 16:33 +, John Colvin via Digitalmars-d-learn
> wrote:
> > On Saturday, 19 September 2015 at 16:15:45 UTC, Russel Winder
> > wrote:
> > > Sadly the:
> > >
> > > pragma(LDC_global_crt_ct
Am Tue, 15 Sep 2015 12:19:34 +
schrieb Atila Neves :
> gdmd supports those options but gdc doesn't. Is that likely to
> always be the case?
>
> Atila
gdmd is just a wrapper around gdc. If something is supported by gdmd it
must also be supported by gdc (the exact switch names might differ).
Am Fri, 11 Sep 2015 05:36:27 -0700
schrieb Jonathan M Davis via Digitalmars-d-learn
:
> Now, as to why the gdc binary is so large, I don't know. My guess is
> that it has something to do with the debug symbols. You could try
> building with -g or -gc to see how that affects the dmd-generated
> bin
Am Sun, 26 Jul 2015 13:11:51 +
schrieb "Dicebot" :
> I remember doing something like that in druntime because of
> objects - you can't override @safe method prototype with @trusted
> one.
>
That's probably related to the fact that safe and trusted functions
have different mangled names. Th
Am Sun, 19 Jul 2015 12:08:16 +
schrieb "Adam D. Ruppe" :
> This line is illegal:
>
> > return toHexString!(Order.decreasing)(crc.finish());
>
> The std.digest.toHexString and variants return a *static array*
> which is static data and has a scope lifetime.
>
> It is horrendous a compiler b
Am Sat, 04 Jul 2015 11:15:57 +
schrieb "Guy Gervais" :
> On Saturday, 4 July 2015 at 08:34:00 UTC, Johannes Pfau wrote:
>
> > It's kinda fascinating that GDC/MinGW seems to work for some
> > real world applications.
>
> I haven't really tried a "real world application" as of yet;
> mostly
Am Sat, 04 Jul 2015 06:30:31 +
schrieb "Marko Grdinic" :
> On Friday, 3 July 2015 at 23:45:15 UTC, Guy Gervais wrote:
> > On Friday, 3 July 2015 at 19:17:28 UTC, Marko Grdinic wrote:
> >> Any advice regarding how I can get this to work? Thanks.
> >
> > I got GDC to work with VS2013 + VisualD b
Am Sun, 26 Apr 2015 00:14:42 +
schrieb "Mike" :
> >
> > Usage:
> > auto b = PORTB.load();
> > PORTB.toggle!"PIN0";
> > PORTB.PIN0 = Level.low;
> > writeln(PORTB.PIN0);
> > PORTB.TEST = 0b000;
> >
>
> That's some nice code! and really leveraging D to great effect.
> I kno
Am Sat, 25 Apr 2015 18:31:45 +
schrieb "Jens Bauer" :
> On Saturday, 25 April 2015 at 17:58:59 UTC, Timo Sintonen wrote:
> > On Saturday, 25 April 2015 at 17:04:18 UTC, Jens Bauer wrote:
> >
> >> I think volatileLoad and volatileStore are intended for this
> >> (please correct me if my unders
Am Sat, 25 Apr 2015 11:38:45 +
schrieb "Martin Nowak" :
> On Saturday, 25 April 2015 at 05:07:04 UTC, Jens Bauer wrote:
> > I hope to find a good way to use import for microcontroller
> > libraries, so it'll be easy for everyone. I'm thinking about
> > something like ...
> >
> > import mcu.s
Am Fri, 24 Apr 2015 18:02:57 +
schrieb "AndyC" :
> On Friday, 24 April 2015 at 17:56:59 UTC, tcak wrote:
> > On Friday, 24 April 2015 at 17:50:03 UTC, AndyC wrote:
> >> Hi All, I cannot seem to understand whats wrong with this:
> >>
> >> // main.d
> >> import std.stdio;
> >> import std.digest.
Am Sun, 12 Apr 2015 17:27:31 +
schrieb "Jens Bauer" :
> On Saturday, 11 April 2015 at 22:45:39 UTC, Laeeth Isharc wrote:
> >
> > Yes - nice to know it can do that also. For me I need to have
> > a way of managing large amounts of email (I have about 2mm
> > messages) including for natural l
Am Tue, 07 Apr 2015 20:38:52 +
schrieb "Jens Bauer" :
> On Tuesday, 7 April 2015 at 20:33:26 UTC, Jens Bauer wrote:
> > Question number 1: How can a C subroutine be made optional, so
> > it's called only if it linked ?
>
> Question 1 might be answered by the following thread:
> http://forum.
Am Sat, 04 Apr 2015 10:38:44 +
schrieb "Jens Bauer" :
> On Saturday, 4 April 2015 at 02:57:22 UTC, Rikki Cattermole wrote:
> > On 4/04/2015 3:08 a.m., Jens Bauer wrote:
> >>> src/start.d:7:10: error: module attribute is in file
> >>> 'gcc/attribute.d' which cannot be read
> >>> import gcc.a
Am Tue, 17 Mar 2015 12:13:44 +
schrieb "Andrew Brown" :
> Thank you very much for your replies, I now have 2 solutions to
> my problem! Both compiling on a virtual machine running debian
> wheezy, and using gcc to do the linking produced executables that
> would run on the cluster.
>
> Com
Am Mon, 16 Mar 2015 16:44:45 +
schrieb "Andrew Brown" :
> Hi,
>
> I'm trying to compile code which calls C and fortan routines from
> D on the linux cluster at work. I've managed to get it to work
> with all 3 compilers on my laptop, but LDC and GDC fail on the
> cluster (though DMD works
53 matches
Mail list logo