Re: GDC for ARM MacOS / OSX

2024-08-22 Thread Iain Buclaw via D.gnu
On Thursday, 22 August 2024 at 16:56:06 UTC, Cecil Ward wrote: If I understand Iain’s reply correctly, the showstopper was lack of support for AArch64 / MacOS in GCC at the time. Has that situation improved by now ? If the situation now makes either downloading or building GDC / AArch64 / M

Re: ICE: in get_frame_for_symbol, at d/d-codegen.cc:2428

2024-06-21 Thread Iain Buclaw via D.gnu
On Friday, 21 June 2024 at 17:10:33 UTC, Andrey Zherikov wrote: Saw [here|https://github.com/andrey-zherikov/argparse/actions/runs/9617154563/job/26528299541] Is this known problem? ``` Which patch release of gdc-12 is being used here? I can't reproduce with 12.3.0. Doing a spot check of t

Re: Bad codegen for comparison with postfix increment

2024-05-09 Thread Iain Buclaw via D.gnu
On Thursday, 9 May 2024 at 18:24:12 UTC, Iain Buclaw wrote: On Wednesday, 8 May 2024 at 14:26:25 UTC, Paul Backus wrote: When the following program is compiled with GDC 14.1, the assertion fails: void main() { int d = 42; bool o = d > d++; assert(o == false); }

Re: Bad codegen for comparison with postfix increment

2024-05-09 Thread Iain Buclaw via D.gnu
On Wednesday, 8 May 2024 at 14:26:25 UTC, Paul Backus wrote: When the following program is compiled with GDC 14.1, the assertion fails: void main() { int d = 42; bool o = d > d++; assert(o == false); } (Godbolt: https://d.godbolt.org/z/e63xbb9Td) The assertion

Re: Writing a GCC Front End with D!

2024-03-23 Thread Iain Buclaw via D.gnu
On Wednesday, 20 March 2024 at 13:19:27 UTC, Mahdis wrote: Hi, I have a question about the possibility of developing a new frontend language for GIMPLE in GCC using D instead of C++. To point out a few things you may not already be aware of / offer some thoughts in what I hope reads as neu

Re: gdc latest Cygwin

2024-01-11 Thread Iain Buclaw via D.gnu
On Tuesday, 2 January 2024 at 03:14:05 UTC, Siarhei Siamashka wrote: On Tuesday, 2 January 2024 at 01:49:47 UTC, Siarhei Siamashka wrote: Thanks for giving the Windows users this hint. It's much better than the radio silence. And by the way, I'm not being sarcastic. Having any hints is really

Re: gdc latest Cygwin

2024-01-01 Thread Iain Buclaw via D.gnu
On Monday, 1 January 2024 at 23:59:38 UTC, Siarhei Siamashka wrote: On Monday, 1 January 2024 at 23:49:41 UTC, tdm3j2bqz wrote: Is gdc known to work on Cygwin? There's already a discussion thread about this: https://forum.dlang.org/thread/ndoljmmelsslcjvrs...@forum.dlang.org Might not be be

Re: cross-GDC for tiny embedded Linux

2023-10-22 Thread Iain Buclaw via D.gnu
On Saturday, 21 October 2023 at 23:13:57 UTC, Dmitry Ponyatov wrote: ```sh gdc --version ``` ``` gdc (Debian 8.3.0-6) 8.3.0 ``` You'll need at least gcc-9/gdc-9 to build gcc-13.

Re: a mysterious linking error introduced by import a library

2023-10-17 Thread Iain Buclaw via D.gnu
On Saturday, 14 October 2023 at 19:28:59 UTC, Johann wrote: On Saturday, 14 October 2023 at 19:01:53 UTC, Iain Buclaw wrote: On Saturday, 14 October 2023 at 17:53:01 UTC, Johann wrote: I cannot figure out this error is caused by `squiz_box` libray, `gdc` or `dub`. My apologies to you if I shoul

Re: a mysterious linking error introduced by import a library

2023-10-14 Thread Iain Buclaw via D.gnu
On Saturday, 14 October 2023 at 17:53:01 UTC, Johann wrote: I cannot figure out this error is caused by `squiz_box` libray, `gdc` or `dub`. My apologies to you if I should have filed this bug in other places. Thanks for your attention. Based on the symbol names, it could be this PR, which was

Re: GCC analyzer false positive

2023-09-22 Thread Iain Buclaw via D.gnu
On Thursday, 31 August 2023 at 13:53:55 UTC, Zachary Yedidia wrote: The following code generates a warning when using GCC analyzer, but I don't think the warning is valid. ``` struct Guard { ~this() {} } Guard lock() { return Guard(); } void bar() { auto foo = lock(); } ``` Compile

Re: GCC analyzer false positive

2023-09-01 Thread Iain Buclaw via D.gnu
On Thursday, 31 August 2023 at 13:53:55 UTC, Zachary Yedidia wrote: The following code generates a warning when using GCC analyzer, but I don't think the warning is valid. ``` struct Guard { ~this() {} } Guard lock() { return Guard(); } void bar() { auto foo = lock(); } ``` Compile

Re: gdc ice

2023-08-09 Thread Iain Buclaw via D.gnu
On Wednesday, 9 August 2023 at 12:51:51 UTC, Adam D Ruppe wrote: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110959 Related DMD bug - the backporting of which looks like it'd fix your test case too. https://issues.dlang.org/show_bug.cgi?id=23010

Re: gdc ice

2023-08-09 Thread Iain Buclaw via D.gnu
On Wednesday, 9 August 2023 at 11:48:41 UTC, Adam D Ruppe wrote: $ cat gdcbug.d class ArsdExceptionBase : object.Exception { package this(string operation, string file = __FILE__, size_t line = __LINE__, Throwable next = null) { super(operation, file, line, next);

Re: ImportC automatic preprocessor?

2023-07-27 Thread Iain Buclaw via D.gnu
On Wednesday, 26 July 2023 at 04:35:43 UTC, Chris Piker wrote: Is that a feature that is likely, or unlikely, to be added to a future version of GDC? I expect it to be incremental. There's a POC implementation that uses the built-in preprocessor that already exists in gdc (libcpp), initial

Re: Instruct gdc to look for standard library in another directory

2023-07-01 Thread Iain Buclaw via D.gnu
On Saturday, 1 July 2023 at 06:53:02 UTC, Johann wrote: I have both `ldc` and `gdc` install on my OpenSUSE tumbleweed machine. ` Without `ldc-runtime-devel`, `gdc` is able to compile successfully. [--snip--] How may I fix it? I tried to use "-I" and "-B" option, but to no avail. Looks l

Re: Regression - quality of generated x86-64 code between GDC v12.3 and v13.1

2023-07-01 Thread Iain Buclaw via D.gnu
On Thursday, 8 June 2023 at 11:39:38 UTC, Iain Buclaw wrote: On Thursday, 8 June 2023 at 04:13:30 UTC, Cecil Ward wrote: I wrote a very small procedure in D and the x86-64 asm code generated in GDC 12.3 was excellent whereas that from 13.1 was insanely bloated, totally different. Note: the badn

Re: GDC for ARM MacOS / OSX

2023-06-29 Thread Iain Buclaw via D.gnu
On Thursday, 29 June 2023 at 05:27:57 UTC, Cecil Ward wrote: I tried getting GCC on my ARM M2 Mac using the homebrew package manager, which is how I got LDC. It gave me C++ and C and FORTRAN, but no sign of any GDC. How is GCC available when it has no support for aarch64-darwin2x? (Experiment

Re: bug report x86-64 code: je / jbe

2023-06-25 Thread Iain Buclaw via D.gnu
On Monday, 19 June 2023 at 09:54:32 UTC, Iain Buclaw wrote: On Sunday, 18 June 2023 at 02:55:32 UTC, Cecil Ward wrote: On Friday, 16 June 2023 at 13:12:06 UTC, Iain Buclaw wrote: Redundant jump? Yes, arguably. Leads to wrong runtime? Doesn't look that way. Completely agree with Iain, it’s n

Re: bug report x86-64 code: je / jbe

2023-06-19 Thread Iain Buclaw via D.gnu
On Sunday, 18 June 2023 at 02:55:32 UTC, Cecil Ward wrote: On Friday, 16 June 2023 at 13:12:06 UTC, Iain Buclaw wrote: Redundant jump? Yes, arguably. Leads to wrong runtime? Doesn't look that way. Completely agree with Iain, it’s not incorrect code, I wasn’t intending to suggest that. I’d j

Re: bug report x86-64 code: je / jbe

2023-06-16 Thread Iain Buclaw via D.gnu
On Wednesday, 14 June 2023 at 12:35:43 UTC, Cecil Ward wrote: I have just noticed a bug in the latest release of GDC that targets x86-64. For example GDC 12.3 and above versions too, running on X86-64, targeting self. This was built with: -O3 -frelease -march=alderlake What leads you to bel

Re: Regression - quality of generated x86-64 code between GDC v12.3 and v13.1

2023-06-08 Thread Iain Buclaw via D.gnu
On Thursday, 8 June 2023 at 04:13:30 UTC, Cecil Ward wrote: I wrote a very small procedure in D and the x86-64 asm code generated in GDC 12.3 was excellent whereas that from 13.1 was insanely bloated, totally different. Note: the badness is independent of the -On optimisation level (-O3 used in

Re: GDMD picking up wrong GDC

2023-05-07 Thread Iain Buclaw via D.gnu
On Sunday, 7 May 2023 at 16:23:31 UTC, kinke wrote: On Sunday, 7 May 2023 at 13:41:43 UTC, WebFreak001 wrote: I have multiple GDCs installed through apt, how do I make gdmd pick the higher one (`gdc-12`) and not just `gdc`? With e.g. `ln -s gdmd /usr/bin/gdmd-12`, and then using `gdmd-12`. As

Re: GDMD picking up wrong GDC

2023-05-04 Thread Iain Buclaw via D.gnu
On Thursday, 4 May 2023 at 13:05:07 UTC, WebFreak001 wrote: In GitHub Actions I installed `sudo apt install gdc-12` now inside Ubuntu 22.04, however `gdc` still seemed to be a small extra package that's symlinking gdc to gdc-11. Now gdmd is picking up GDC 11 instead of GDC 12, causing issues

Re: Reducing debug info for stack traces, while preserving for gdb

2022-12-24 Thread Iain Buclaw via D.gnu
Hi, On Wednesday, 14 December 2022 at 22:23:49 UTC, Witold Baryluk wrote:> The bulk of information is in `.debug_info`. But I believe it contains way more information than is really needed to just produce line numbers. You're observation is correct. GDC uses libbacktrace to produce stack

Re: GDC mainline (20221219) fails to build on OpenBSD (patch included)

2022-12-19 Thread Iain Buclaw via D.gnu
On Monday, 19 December 2022 at 14:00:38 UTC, Brian Callahan wrote: Hi Iain -- GDC mainline stopped building on OpenBSD recently. Below is the diff to fix things. [...] Thanks, better to send that to upstr dmd though (I did say they should've used @weak)

Re: Building i386 D runtime on OS X

2022-09-24 Thread Iain Buclaw via D.gnu
On Saturday, 24 September 2022 at 23:05:28 UTC, teverett wrote: Hello, I am following the instructions here: https://wiki.dlang.org/Building_LDC_runtime_libraries I'm on OSX and need a ELF D RTL for i386. I've used HomeBrew to install x86_64-elf-gcc, ninja and cmake. The command I'm issuing

Re: Compiling GDC results in an error

2022-08-28 Thread Iain Buclaw via D.gnu
On Sunday, 28 August 2022 at 12:31:08 UTC, Alexander Zhirov wrote: I am trying to build GCC with D support included in it, but I get an error at the configuration stage: ```sh ... configure: error: GDC is required to build d ``` Yes, you need gdc (at least version 9.1) installed in order to

Re: Should GCC 12.1 release notes contain D updates?

2022-08-17 Thread Iain Buclaw via D.gnu
On Monday, 1 August 2022 at 21:15:09 UTC, singingbush wrote: On Saturday, 21 May 2022 at 04:11:41 UTC, Chris Piker wrote: Hi GDC Looking over the gcc release notes for version 12.1 here: https://gcc.gnu.org/gcc-12/changes.html I didn't see any mention of gdc supporting newer versions of the d

Re: Any plans for GDC to get DMD's -i option?

2022-07-28 Thread Iain Buclaw via D.gnu
On Sunday, 24 July 2022 at 00:07:06 UTC, TTK Ciar wrote: Hello GDC folks, I am using GDC 12.1.0 and not finding any equivalent to DMD's "-i" option, which causes DMD to automatically find and compile imported modules. (There's "-I" but that does something rather different.) I've looked in

Re: Should gdmd be included with gdc?

2022-05-24 Thread Iain Buclaw via D.gnu
On Tuesday, 24 May 2022 at 08:22:30 UTC, Chris Piker wrote: Hi GDC Attempting to use meson I found that I probably need dub, but building dub requires dmd command line emulation. The external gdmd perl script to handles this course, but should there be a gdmd binary that is built while produc

Re: How to turn off warnings as errors

2022-05-23 Thread Iain Buclaw via D.gnu
Excerpts from rikki cattermole via D.gnu's message of Mai 22, 2022 7:18 am: > > On 22/05/2022 3:42 PM, Chris Piker wrote: >> As a general bit of dev-culture advice, would you recommend that I file >> issues on packages that only build using `-Wno-deprecated` ? > > You can do that, but usually th

Re: GDC buildable on solaris?

2022-03-13 Thread Iain Buclaw via D.gnu
On Sunday, 13 March 2022 at 06:46:47 UTC, Chris Piker wrote: Hi GDC I'm temporarily working on an old solaris big-endian system, which happens to have GCC 4.9. I think this could be recent enough to boot-strap gcc-11.2 (and of course gdc). But before I attempt to build gdc on such an odd be

Re: error: matching constraint references invalid operand number

2022-03-05 Thread Iain Buclaw via D.gnu
On Saturday, 5 March 2022 at 10:04:43 UTC, rempas wrote: Thank you! This will do the trick! Do you happen to know if D plans to add "registers" in the future or if it has been suggested but was rejected? core.attribute (or more specifically, gcc.attributes, which is where all the documented

Re: error: matching constraint references invalid operand number

2022-03-04 Thread Iain Buclaw via D.gnu
On Friday, 4 March 2022 at 17:18:56 UTC, rempas wrote: When I try to compile, I'm getting the following error message: ``` source/time.d: In function ‘sys_clock_nanosleep’: source/time.d:132:31: error: matching constraint references invalid operand number 132 | : "memory", "rcx", "r11"

Re: Is GDC a solid option versus LDC?

2022-03-04 Thread Iain Buclaw via D.gnu
On Friday, 4 March 2022 at 15:31:30 UTC, rempas wrote: Oh, sucks to hear that. Can I get some more info (links?) on Also do you know where is the current development source of GDC? announcement: https://forum.dlang.org/post/nuphsvwkdlygdcxai...@forum.dlang.org mainline: https://gcc.gnu.org/g

Re: Is GDC a solid option versus LDC?

2022-03-04 Thread Iain Buclaw via D.gnu
On Friday, 4 March 2022 at 15:17:49 UTC, rikki cattermole wrote: On 05/03/2022 4:05 AM, rempas wrote: However, I'm really skeptical as to why people seem to prefer LDC and I wonder if GDC is not as stable and reliable as LDC or if most code that uses recent code doesn't work in GDC. I have als

Re: Missing NUL terminator when using "-MT " option

2021-11-28 Thread Iain Buclaw via D.gnu
On Sunday, 28 November 2021 at 13:58:49 UTC, Sebastien Alaiwan wrote: Hi, It seems that the output target name gets corrupted (see the extra chars at the end of 'MyTargetName'): *$ cat test.d* // empty file *$ gdc -Isrc -MM "test.d" -MT "MyTargetName" -MF "test.deps"* *$ c

Re: Bug when using uint inside loop

2021-10-09 Thread Iain Buclaw via D.gnu
On Saturday, 9 October 2021 at 14:52:47 UTC, Matheus wrote: I saw this problem in C, then I tried on GDC and have the same problem: int main() { for (uint a = 0, b = 0; a < 6; a += 1, b += 2){ if (b < a){ return 1; } } return 0; } The code above generates t

Re: Using GtK

2021-08-24 Thread Iain Buclaw via D.gnu
On Monday, 23 August 2021 at 20:21:13 UTC, Ruby The Roobster wrote: gdc -I/usr/include/gtkd-3 -L-ldl -L-libgtkd-3 test.d You're using command-line arguments as if you are compiling with dmd. On gcc `-L-libgtkd-3` means "add _directory_ ./-libgtkd-3 to the list of directories to be searched

Re: undefined reference to `fiber_switchContext'

2021-08-24 Thread Iain Buclaw via D.gnu
On Monday, 23 August 2021 at 19:07:52 UTC, Mahdi wrote: /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/libgphobos.so: undefined reference to `fiber_switchContext' collect2: error: ld returned 1 exit status I have this problem after installing GDC 11. I installed gcc,g++ and gdc version 11 from u

d.gnu@puremagic.com

2021-08-18 Thread Iain Buclaw via D.gnu
On Wednesday, 18 August 2021 at 07:08:09 UTC, Mahdi wrote: On Tuesday, 17 August 2021 at 20:39:29 UTC, max haughton wrote: On Tuesday, 17 August 2021 at 18:39:27 UTC, Mahdi wrote: On Monday, 16 August 2021 at 10:05:08 UTC, Iain Buclaw wrote: [...] Why does a simple or empty Hello program gen

Re: compile error on ppc64 little endian

2021-08-17 Thread Iain Buclaw via D.gnu
On Tuesday, 17 August 2021 at 18:18:35 UTC, Mahdi wrote: ○ → powerpc64le-linux-gnu-gcc-10 -S app.d app.d:1:8: error: module stdio is in file 'std/stdio.d' which cannot be read 1 | import std.stdio; |^ import path[0] = /usr/lib/gcc-cross/powerpc64le-linux-g

d.gnu@puremagic.com

2021-08-16 Thread Iain Buclaw via D.gnu
On Monday, 16 August 2021 at 09:28:41 UTC, Mahdi wrote: On Monday, 16 August 2021 at 08:43:40 UTC, Iain Buclaw wrote: The list of targets on that site is only what's present in [contrib/config-list.mk](https://github.com/gcc-mirror/gcc/blob/91292490d573f9f9e4f162d6d8c693a969197f2d/contrib/config

Re: GDC port/package now available on OpenBSD

2021-08-16 Thread Iain Buclaw via D.gnu
On Sunday, 15 August 2021 at 18:56:52 UTC, Brian wrote: Oh, I jumped the gun a little here. GCC 11 has already been promoted to official package, so you can run `pkg_add gdc` to get GDC :) ~Brian Thanks Brian!

d.gnu@puremagic.com

2021-08-16 Thread Iain Buclaw via D.gnu
On Sunday, 15 August 2021 at 19:42:11 UTC, Mahdi wrote: On Sunday, 15 August 2021 at 17:22:28 UTC, max haughton wrote: On Sunday, 15 August 2021 at 15:03:26 UTC, Mahdi wrote: Hi Iain Buclaw, we appreciate your efforts in the d for the gnu ecosystem. but what is the status of gdc for risc-v arch

Re: Would APEs work with D?

2021-05-18 Thread Iain Buclaw via D.gnu
On Monday, 17 May 2021 at 11:08:33 UTC, Raimondo Mancino wrote: My guess is that we could produce a portable executable with Cosmopolitan and thus write something like this in our hello.d: ```d /* I am not sure how would we compile this, but * I guess it's going to be something like: gdc -g

Re: ddmd gdc

2020-11-29 Thread Iain Buclaw via D.gnu
On Wednesday, 21 October 2020 at 15:47:58 UTC, Ola Fosheim Grøstad wrote: On Wednesday, 21 October 2020 at 11:57:33 UTC, Jacob Carlborg wrote: On Tuesday, 20 October 2020 at 15:35:52 UTC, Ola Fosheim Grøstad wrote: Building all of gcc in OS-X is rather massive. Is there a way to only build gd

Re: ddmd gdc

2020-10-13 Thread Iain Buclaw via D.gnu
On Tuesday, 13 October 2020 at 01:42:55 UTC, Boris Carvajal wrote: On Monday, 12 October 2020 at 23:59:15 UTC, Iain Buclaw wrote: I won't be pushing anything unless everything passes, so no need to worry about that. May I ask here, is there any chance to include GDMD wrapper in GCC? Only if

Re: ddmd gdc

2020-10-12 Thread Iain Buclaw via D.gnu
On Monday, 12 October 2020 at 18:03:39 UTC, Ola Fosheim Grøstad wrote: On Monday, 12 October 2020 at 17:26:22 UTC, Iain Buclaw wrote: I'm tracking the "master" branch of DMD, as the "merge master into stable" commits are huge and tend to come with many implementation regressions. Maybe it is

Re: ddmd gdc

2020-10-12 Thread Iain Buclaw via D.gnu
On Monday, 12 October 2020 at 11:07:55 UTC, Ola Fosheim Grøstad wrote: On Sunday, 11 October 2020 at 20:17:16 UTC, Iain Buclaw wrote: Relatively speaking, yes. It's not inherently unstable because its written in D, but the dmd developers occassionally break the bootstrap in obscure ways, as of

Re: ddmd gdc

2020-10-11 Thread Iain Buclaw via D.gnu
On Sunday, 11 October 2020 at 14:42:50 UTC, Ola Fosheim Grøstad wrote: On Sunday, 11 October 2020 at 14:22:14 UTC, Ola Fosheim Grøstad wrote: Is gdc using the d-based front end in a stable state? Ok, that wasn't clear. I meant: Is gdc, the version using the d-based front end, in a stable sta

Re: GDC CI

2020-09-18 Thread Iain Buclaw via D.gnu
On Thursday, 17 September 2020 at 14:15:34 UTC, wjoe wrote: On Wednesday, 16 September 2020 at 21:05:27 UTC, Iain Buclaw wrote: On Wednesday, 16 September 2020 at 12:50:57 UTC, wjoe wrote: [...] You should be able to get yourself down to about ~30MB. ;-) I'll see if there's any miscellaneous

Re: GDC CI

2020-09-16 Thread Iain Buclaw via D.gnu
On Wednesday, 16 September 2020 at 10:47:01 UTC, wjoe wrote: On Wednesday, 16 September 2020 at 10:23:16 UTC, Iain Buclaw wrote: On Wednesday, 16 September 2020 at 09:33:05 UTC, wjoe wrote: [...] build_bootstrap=enabled should be OK. Even better, it configures with --enable-checking=release

Re: GDC CI

2020-09-16 Thread Iain Buclaw via D.gnu
On Wednesday, 16 September 2020 at 12:50:57 UTC, wjoe wrote: On Wednesday, 16 September 2020 at 10:42:27 UTC, Iain Buclaw wrote: On Wednesday, 16 September 2020 at 09:55:22 UTC, wjoe wrote: The way it's being done right now is that 'make install' installs to the /usr prefix. After that a tarb

Re: GDC CI

2020-09-16 Thread Iain Buclaw via D.gnu
On Wednesday, 16 September 2020 at 11:17:41 UTC, wjoe wrote: On Wednesday, 16 September 2020 at 10:57:46 UTC, Iain Buclaw wrote: On Tuesday, 15 September 2020 at 16:00:56 UTC, wjoe wrote: [...] I had a look on the most recent build, and they are all timeout failures. This has on some rare o

Re: GDC CI

2020-09-16 Thread Iain Buclaw via D.gnu
On Tuesday, 15 September 2020 at 16:00:56 UTC, wjoe wrote: I've added the above tasks and they are reported to have been completed successfully in the Cirrus summary. However, on a closer look I can spot multiple failures or files/directories which can't be found. - Some 12 failed tests as well

Re: GDC CI

2020-09-16 Thread Iain Buclaw via D.gnu
On Wednesday, 16 September 2020 at 09:55:22 UTC, wjoe wrote: The way it's being done right now is that 'make install' installs to the /usr prefix. After that a tarball of this prefix is created (via tar cJf gdc-triplet.txz /usr). I'm not sure if that's suitable as a release as is because tar

Re: GDC CI

2020-09-16 Thread Iain Buclaw via D.gnu
On Wednesday, 16 September 2020 at 09:57:21 UTC, wjoe wrote: On Wednesday, 16 September 2020 at 09:55:22 UTC, wjoe wrote: I couldn't find the install script in my 1 minute search in the download section. Could I inconvenience you to copy/paste the link, please ? Thanks :) Found it. It was ju

Re: GDC CI

2020-09-16 Thread Iain Buclaw via D.gnu
On Wednesday, 16 September 2020 at 09:33:05 UTC, wjoe wrote: On Tuesday, 15 September 2020 at 18:49:48 UTC, Iain Buclaw wrote: On Tuesday, 15 September 2020 at 16:05:53 UTC, wjoe wrote: [...] Note the comments in the build function, only the dependencies of the C++ and D libraries are built.

Re: GDC CI

2020-09-15 Thread Iain Buclaw via D.gnu
On Tuesday, 15 September 2020 at 16:05:53 UTC, wjoe wrote: On Tuesday, 15 September 2020 at 16:00:56 UTC, wjoe wrote: I've added the above tasks and they are reported to have been completed successfully in the Cirrus summary. However, on a closer look I can spot multiple failures or files/direc

Re: GDC CI

2020-09-12 Thread Iain Buclaw via D.gnu
On Friday, 11 September 2020 at 12:33:02 UTC, wjoe wrote: On Wednesday, 9 September 2020 at 23:13:38 UTC, Iain Buclaw wrote: On Wednesday, 9 September 2020 at 18:32:07 UTC, wjoe wrote: On Wednesday, 9 September 2020 at 12:37:37 UTC, wjoe wrote: On Wednesday, 9 September 2020 at 12:13:32 UTC, k

Re: GDC CI

2020-09-11 Thread Iain Buclaw via D.gnu
On Friday, 11 September 2020 at 12:19:52 UTC, wjoe wrote: On Thursday, 10 September 2020 at 09:30:15 UTC, kinke wrote: On Wednesday, 9 September 2020 at 18:32:07 UTC, wjoe wrote: Mac is a single core VM on community cluster. Nope, it's a dual-core VM with hyperthreading and so 4 logical core

Re: GDC CI

2020-09-09 Thread Iain Buclaw via D.gnu
On Wednesday, 9 September 2020 at 18:32:07 UTC, wjoe wrote: On Wednesday, 9 September 2020 at 12:37:37 UTC, wjoe wrote: On Wednesday, 9 September 2020 at 12:13:32 UTC, kinke wrote: On Wednesday, 9 September 2020 at 11:33:22 UTC, wjoe wrote: I suspect that maybe the compiler wasn't properly inst

Re: GDC CI

2020-09-09 Thread Iain Buclaw via D.gnu
On Tuesday, 8 September 2020 at 23:48:58 UTC, wjoe wrote: On Tuesday, 8 September 2020 at 20:12:47 UTC, wjoe wrote: [...] Except there's a problem with the installation of gcc-9. Apparently there's no Debian release providing a gcc-9 package. The build of the container fails in step 4 on ap

Re: GDC CI

2020-09-08 Thread Iain Buclaw via D.gnu
On Tuesday, 8 September 2020 at 16:44:39 UTC, wjoe wrote: On Tuesday, 8 September 2020 at 14:18:10 UTC, Iain Buclaw wrote: On Tuesday, 8 September 2020 at 13:50:26 UTC, wjoe wrote: On Monday, 7 September 2020 at 10:41:50 UTC, wjoe wrote: Options I can think of are: A) A Dockerfile for each ca

Re: GDC CI

2020-09-08 Thread Iain Buclaw via D.gnu
On Tuesday, 8 September 2020 at 13:50:26 UTC, wjoe wrote: On Monday, 7 September 2020 at 10:41:50 UTC, wjoe wrote: Options I can think of are: A) A Dockerfile for each case in (1.,) 2. and 3., or B) A docker container which provides the environment to build GCC and a (Cirrus) CI config which d

Re: GDC CI

2020-09-07 Thread Iain Buclaw via D.gnu
On Sunday, 6 September 2020 at 21:52:04 UTC, wjoe wrote: On Saturday, 5 September 2020 at 21:14:28 UTC, Iain Buclaw wrote: On Saturday, 5 September 2020 at 11:23:09 UTC, wjoe wrote: On Saturday, 5 September 2020 at 10:25:28 UTC, Johannes Pfau wrote: [...] Please forgive my confusion. There

Re: GDC CI

2020-09-07 Thread Iain Buclaw via D.gnu
On Saturday, 5 September 2020 at 21:14:28 UTC, Iain Buclaw wrote: On Saturday, 5 September 2020 at 11:23:09 UTC, wjoe wrote: On Saturday, 5 September 2020 at 10:25:28 UTC, Johannes Pfau wrote: The main difficulty in setting up CI for GDC is that we can't simply put CI configuration files in t

Re: GDC CI

2020-09-05 Thread Iain Buclaw via D.gnu
On Saturday, 5 September 2020 at 11:23:09 UTC, wjoe wrote: On Saturday, 5 September 2020 at 10:25:28 UTC, Johannes Pfau wrote: Am Sat, 05 Sep 2020 10:04:30 + schrieb wjoe: [...] To answer your other question: [...] That information is probably quite obsolete: As GCC upstream uses git

Re: Can we fix the links to gdcproject.org or change the site?

2020-09-03 Thread Iain Buclaw via D.gnu
On Saturday, 29 August 2020 at 18:33:47 UTC, Iain Buclaw wrote: On Wednesday, 26 August 2020 at 23:37:24 UTC, James Lu wrote: Hello, The links on the D IRC channel as well as https://dlang.org/download.html for GDC all point to https://gdcproject.org/downloads, which last appears to be updat

Re: Can we fix the links to gdcproject.org or change the site?

2020-08-29 Thread Iain Buclaw via D.gnu
On Wednesday, 26 August 2020 at 23:37:24 UTC, James Lu wrote: Hello, The links on the D IRC channel as well as https://dlang.org/download.html for GDC all point to https://gdcproject.org/downloads, which last appears to be updated several years ago. Can we archive the old site and make GDC'

Re: Support of -run and source code from stdin

2020-05-27 Thread Iain Buclaw via D.gnu
On Wednesday, 27 May 2020 at 21:40:38 UTC, Andre Pany wrote: Hi, Dmd and ldc supports running source code from stdin: ``` echo 'void main(){}' | dmd -run - ``` It seems GDC does not support argument -run and I do not know I see no obvious use for having something like -run in the driver. Too

Re: Using gdc on Windows

2020-05-26 Thread Iain Buclaw via D.gnu
On 26 May 2020 19:52:51 CEST, "MINGW-USER via D.gnu" wrote: >On Monday, 25 May 2020 at 10:23:50 UTC, Iain Buclaw wrote: >> On 21/05/2020 01:18, NonNull via D.gnu wrote: >>> Hello, >>> >>> I'd like to run gdc natively on Windows in a mingw compatible >>> way. How can I proceed? >>> >> >> We nee

Re: Using gdc on Windows

2020-05-25 Thread Iain Buclaw via D.gnu
On 21/05/2020 01:18, NonNull via D.gnu wrote: > Hello, > > I'd like to run gdc natively on Windows in a mingw compatible way. How can I > proceed? > We need some testers to verify this patch. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91595

Re: Including GDC in nixpkgs

2020-05-25 Thread Iain Buclaw via D.gnu
On 24/05/2020 13:02, Stefan Frijters via D.gnu wrote: > On Monday, 21 October 2019 at 19:26:15 UTC, Iain Buclaw wrote: >> On Wed, 25 Sep 2019 at 21:30, Stefan Frijters via D.gnu >> wrote: >>> [...] >> >> How does it go about building Ada or Go?  Surely those two frontends will >> run into the sa

Re: gdcproject.org is unreachable - breaks github checks

2020-05-14 Thread Iain Buclaw via D.gnu
On Wednesday, 13 May 2020 at 20:43:40 UTC, Bastiaan Veelo wrote: It's back! Yes, sorry for that. Hetzner had a problem where the dns zone suddenly stopped resolving yesterday afternoon (possibly related, one of their nameservers appeared to had gone down too). I had pushed a no-op update a

Re: static foreach in gdc

2020-02-08 Thread Iain Buclaw via D.gnu
Original Message On 8 Feb 2020, 22:25, Elronnd via D.gnu < d.gnu@puremagic.com> wrote: On Friday, 7 February 2020 at 11:51:36 UTC, Jean-Louis Leroy wrote: > What's the situation with `static foreach` on gdc? When I > install it using install.sh from > https://dlang.org/install.htm

Re: static foreach in gdc

2020-02-07 Thread Iain Buclaw via D.gnu
‐‐‐ Original Message ‐‐‐ On Friday, 7 February 2020 15:47, Mathias Lang via D.gnu wrote: > On Friday, 7 February 2020 at 11:51:36 UTC, Jean-Louis Leroy > wrote: > > > Hi, > > What's the situation with `static foreach` on gdc? When I > > install it using install.sh from > > https://dlang.

Re: Appender example doesn't work with GDC. GDC bug?

2019-12-28 Thread Iain Buclaw via D.gnu
On Saturday, 28 December 2019 at 03:08:48 UTC, BoraxMan wrote: The example for appender located here, does not compile with GDC. https://dlang.org/library/std/array/appender.html [---snip---] For the line "Writeln(w[]);" GDC reports "error: no [] operator overload for type Appender!string".

Re: Output of std.format for float difference between DMD and GDC

2019-12-07 Thread Iain Buclaw via D.gnu
‐‐‐ Original Message ‐‐‐ On Wednesday, 4 December 2019 12:16, BoraxMan via D.gnu wrote: > On Wednesday, 4 December 2019 at 09:41:58 UTC, BoraxMan wrote: > > > I have noted that DMD and GDC provide a different output to the > > following line of code. > > writeln(format("$%-12,3.2f",66543

Re: c++11 enum syntax ok in DMD headers ?

2019-11-23 Thread Iain Buclaw via D.gnu
‐‐‐ Original Message ‐‐‐ On Saturday, 23 November 2019 13:54, S.G via D.gnu wrote: > Thanks for the quick replying, even if a bit disapointing. > > The reason why I asked is because I'd like to avoid cases where > the enum type is used directly and that creates an alignment > issue that im

Re: c++11 enum syntax ok in DMD headers ?

2019-11-22 Thread Iain Buclaw via D.gnu
Original Message On Nov 22, 2019, 8:55 AM, S.G via D.gnu < d.gnu@puremagic.com> wrote: Hello, I've seen that many D enum are still typed as int because of the c++ headers but c++11 allow things like enum Stuff: unsigned char { ... } Is is ok to use this in the headers ? The basel

Re: gdc broken by ldc-phobos-devel on Fedora

2019-11-20 Thread Iain Buclaw via D.gnu
Nothing much that can be done here except get the package maintainer to fix the installation paths of ldc. The phobos/druntime sources will always differ between each compiler runtime library as there're many local changes that aren't accepted in upstream. -- Iain Original Message ---

Re: How to port this GCC assembly to gdc?

2019-10-24 Thread Iain Buclaw via D.gnu
On Thu, 24 Oct 2019 at 19:20, drug via D.gnu wrote: > > On 10/24/19 8:01 PM, Iain Buclaw wrote: > > You can do the following: > > > > void somefunc() > > { > >asm { > > "990: nop" ~ > > ".pushsection .note.stapsdt,\"?\",\"note\"" ~ > > ".balign 4" ~ > > ".4b

Re: How to port this GCC assembly to gdc?

2019-10-24 Thread Iain Buclaw via D.gnu
On Thu, 24 Oct 2019 at 16:50, drug via D.gnu wrote: > > On 10/24/19 5:41 PM, Iain Buclaw wrote: > > > > It looks like this is a top-level inline asslembler declaration? D > > doesn't support top-level inline assembler, however I think this would > > be a useful feature to allow. > > > > As for th

Re: How to port this GCC assembly to gdc?

2019-10-24 Thread Iain Buclaw via D.gnu
On Thu, 24 Oct 2019 at 12:05, drug via D.gnu wrote: > > Hello! > > I have the following assebly: > ```C > __asm__ __volatile__ ( > "990: nop\n" \ > ".pushsection .note.stapsdt,\"?\",\"note\"\n"\ > ".balign 4\n"

Re: GDC release cycle

2019-10-22 Thread Iain Buclaw via D.gnu
On Mon, 21 Oct 2019 at 22:15, Dennis via D.gnu wrote: > > On Monday, 21 October 2019 at 19:19:16 UTC, Iain Buclaw wrote: > > I have taken pretty much 4 months off with intermittent brief > > returns since Dconf to rebase and test dmd master (those who > > were present at Dconf will know why) and m

Re: How to install GDC (or even LDC) on Raspberry pi 4 using gentoo?

2019-10-21 Thread Iain Buclaw via D.gnu
On Thu, 12 Sep 2019 at 00:15, seany via D.gnu wrote: > > Hello > > I am using Gentoo with LXQT - a system that is more stable to my > taste (and tests) on raspberry pi 4. > > I want to use GDC or LDC2. I cant use LDC2 on gentoo ARM - this > is leading to an error : > [ snip ] > > If i use: sudo

Re: Including GDC in nixpkgs

2019-10-21 Thread Iain Buclaw via D.gnu
On Wed, 25 Sep 2019 at 21:30, Stefan Frijters via D.gnu wrote: > > On Sunday, 22 September 2019 at 10:29:24 UTC, Stefan Frijters > wrote: > > Hi Johannes, > > > > Thank you for the feedback. I've posted some more below so we > > can try to find out what I'm doing wrong. I've added some blank > > l

Re: GDC Phobos not up to date with upstream?

2019-10-21 Thread Iain Buclaw via D.gnu
On Sat, 28 Sep 2019 at 19:15, Kyle De'Vir via D.gnu wrote: > > I noticed this when attempting to use std.string.strip() with two > parameters. That addition was apparently added back at January > 10th, 2018... > > How old is current 9.2.1 GDC's Phobos? > > Is there a way to use latest Phobos along

Re: GDC release cycle

2019-10-21 Thread Iain Buclaw via D.gnu
On Tue, 1 Oct 2019 at 22:45, Dennis via D.gnu wrote: > > On Tuesday, 1 October 2019 at 20:16:14 UTC, Sjoerd Nijboer wrote: > > That's what confuses me, according to the GDC project website > > that is linked to at the dlang download page the underlying GCC > > version of GDC is 3 major versions be

Re: GDCs emitted code is crazy fast

2019-08-19 Thread Iain Buclaw via D.gnu
On Mon, 19 Aug 2019 at 15:30, Daniel Kozák via D.gnu wrote: > > On Monday, 19 August 2019 at 10:54:09 UTC, Iain Buclaw wrote: > > > > Optimal code sometimes needs a bit of coercing. You shouldn't > > need to pass weird options though. > > Yes I agree, generaly one is good with -O and -(f)release

Re: GDCs emitted code is crazy fast

2019-08-19 Thread Iain Buclaw via D.gnu
On Mon, 19 Aug 2019 at 05:50, James Blachly via D.gnu wrote: > > I got around to finally compiling my project (processing high throughput > sequencing data) and found GDC compiled code executed TWICE as fast as > LDC compiled code, which itself was faster than DMD. I am truly surprised. > > Can't

Re: GDCs emitted code is crazy fast

2019-08-19 Thread Iain Buclaw via D.gnu
On Mon, 19 Aug 2019 at 10:00, Daniel Kozak via D.gnu wrote: > > On Monday, 19 August 2019 at 03:47:04 UTC, James Blachly wrote: > > I got around to finally compiling my project (processing high > > throughput sequencing data) and found GDC compiled code > > executed TWICE as fast as LDC compiled c

Re: gdc git compiling failed on ArchLinux amd64

2019-08-14 Thread Iain Buclaw via D.gnu
On Wed, 14 Aug 2019 at 07:35, dangbinghoo via D.gnu wrote: > > hi all, > > in Archlinux, I tried to build gdc-10(git version), but it failed: > > ``` > gdc -no-pie -lstdc++ -g -DIN_GCC -fno-exceptions -fno-rtti > -fasynchronous-unwind-tables -W -Wall -Wno-narrowing > -Wwrite-strings -Wcast-q

Re: Installed with sudo apt-get install gdc in Ubuntu 18.04 - Can't compile a simple program.

2019-08-06 Thread Iain Buclaw via D.gnu
On Tue, 6 Aug 2019 at 19:15, Stefanos Baziotis via D.gnu wrote: > > On Tuesday, 6 August 2019 at 16:38:56 UTC, Johannes Pfau wrote: > > > > gdc includes everything in /usr/include/d automatically. The > > assumption is that distributions will only install global D > > files there which are compile

Re: Hello world in AAarch64 Debian Buster

2019-08-06 Thread Iain Buclaw via D.gnu
On Wed, 7 Aug 2019 at 00:15, Cecil Ward via D.gnu wrote: > > On Tuesday, 6 August 2019 at 16:35:21 UTC, Johannes Pfau wrote: > > Am Tue, 06 Aug 2019 05:13:11 + schrieb Cecil Ward: > > > >> I have a raspberry pi 3B+ running raspbian stretch 32-bit with > >> a containerised guest o/s inside it u

Re: GDC missing betterC switch

2019-07-18 Thread Iain Buclaw via D.gnu
On Thu, 18 Jul 2019 at 18:15, Eugene Wissner via D.gnu wrote: > > You can get away with: > > module object; > extern(C) int main() { return 0; } > > As a minimal program and it will just compile, no fancy switches > required. > gcc test.d && ./a.out Yes, that is using gcc to compile D code, and n

Re: GDC 9 and ARM Cortex-M

2019-07-07 Thread Iain Buclaw via D.gnu
On Sun, 7 Jul 2019 at 14:15, Timo Sintonen via D.gnu wrote: > > On Sunday, 7 July 2019 at 09:57:33 UTC, Iain Buclaw wrote: > > On Sun, 7 Jul 2019 at 08:25, Timo Sintonen via D.gnu > > wrote: > >> > >> My little test program is nearly working now. > >> Some funny things I have found: > >> > >> - W

  1   2   3   4   >