[Bug c++/101765] ICE when using a VLA inside of a coroutine

2021-08-04 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101765 --- Comment #1 from Iain Sandoe --- I am not sure that a VLA can be used in a coroutine (neither can alloca, if I remember correctly) [so not sure that this is ICE on valid, it could be ICE on invalid] Either way, we should not ICE from it.

[Bug target/100340] Bootstrap fails with Clang 12.0.5 (XCode 12.5)

2021-08-02 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100340 --- Comment #20 from Iain Sandoe --- I am testing a patch series (expected to push a github copy today if that testing goes OK) including an implementation of comment #9. However, IFF the jit build does not honour --without-build-config, that

[Bug bootstrap/84257] Extremely slow compilation from gcc source code under macOS 10.13

2021-07-31 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84257 --- Comment #9 from Iain Sandoe --- (In reply to Eric Gallager from comment #8) > the MacPorts project applies the following patch to work around this issue: > https://github.com/macports/macports-ports/commit/ >

[Bug target/100340] Bootstrap fails with Clang 12.0.5 (XCode 12.5)

2021-07-30 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100340 --- Comment #15 from Iain Sandoe --- (In reply to Chris Jones from comment #14) > Apologies, typo above. I meant to say the --without-build-config workaround > no longer works with 11.2.0 OK.. I plan to do a Darwin/macOS 11.2 patch set this

[Bug fortran/100651] [9/10/11/12 Regression] Weird memory corruption with multiple triggers

2021-07-29 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100651 Iain Sandoe changed: What|Removed |Added Summary|Weird memory corruption |[9/10/11/12 Regression]

[Bug fortran/100651] Weird memory corruption with multiple triggers

2021-07-29 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100651 Iain Sandoe changed: What|Removed |Added Target||x86_64-linux-gnu, |

[Bug target/100340] Bootstrap fails with Clang 12.0.5 (XCode 12.5)

2021-07-29 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100340 --- Comment #11 from Iain Sandoe --- (In reply to Matt Thompson from comment #10) > Query from someone who I believe just encountered this trying to build 11.2 > on macOS 11.5.1 with XCode 12.5: What is the best method to work around this > for

[Bug fortran/100651] Weird memory corruption with multiple triggers

2021-07-29 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100651 Iain Sandoe changed: What|Removed |Added CC||iains at gcc dot gnu.org --- Comment #3

[Bug objc/101616] Objective-C frontend should not emit vtable/fixup messages (at least, not by default)

2021-07-29 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101616 --- Comment #4 from Iain Sandoe --- (In reply to Matt Jacobson from comment #3) > As it happens, I'm targeting the NeXT v2 runtime, but I'm *not* actually > targeting Darwin. So `flag_next_runtime` is just 1 for me--not an OS > version value

[Bug sanitizer/101111] xgcc cross-compiler for x86_64-apple-darwin in GCC 11.1 doesn't generate weak symbols, resulting in undefined reference to ___lsan_default_suppressions

2021-07-25 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=10 --- Comment #10 from Iain Sandoe --- (In reply to Mosè Giordano from comment #6) > Created attachment 51038 [details] > Patch to fix the reported issue > > Please find attached a patch to fix the reported issue. I replaced the > bashism +=

[Bug objc/101616] Objective-C frontend should not emit vtable/fixup messages (at least, not by default)

2021-07-25 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101616 Iain Sandoe changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug sanitizer/101111] xgcc cross-compiler for x86_64-apple-darwin in GCC 11.1 doesn't generate weak symbols, resulting in undefined reference to ___lsan_default_suppressions

2021-07-22 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=10 --- Comment #9 from Iain Sandoe --- (In reply to Martin Liška from comment #8) > Sure, but I would like to first speak Iain who added the code. > What do you think about the patch? hm, sorry for introducing the bash-ism, the change LGTM but I

[Bug target/100152] [10 Regression] used caller-saved register not preserved across a call.

2021-07-20 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100152 Iain Sandoe changed: What|Removed |Added Summary|[10/11/12 Regression] used |[10 Regression] used

[Bug bootstrap/100246] [11/12 Regression] GCC will not bootstrap with clang 3.4/3.5 [xcode 5/6, Darwin 12/13]

2021-07-20 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100246 Iain Sandoe changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug bootstrap/93758] Building x86_64-w64-mingw32-gcc (mingw-w64) on macOS Catalina results in "internal compiler error: Segmentation fault"

2021-07-18 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93758 --- Comment #5 from Iain Sandoe --- (In reply to Mojca Miklavec from comment #4) > I'm sorry, I forgot about this ticket. I can confirm that building (version > 11.1) in fact works on all macOS versions at the moment > >

[Bug c++/98056] ICE tree check: expected record_type or union_type or qual_union_type, have array_type in build_special_member_call, at cp/call.c:9862 since r11-2183-g0f66b8486cea8668

2021-07-12 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98056 --- Comment #10 from Iain Sandoe --- *** Bug 101420 has been marked as a duplicate of this bug. ***

[Bug c++/101420] ICE in build_special_member_call, at cp/call.c:10179

2021-07-12 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101420 Iain Sandoe changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/101420] ICE in build_special_member_call, at cp/call.c:10179

2021-07-12 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101420 --- Comment #12 from Iain Sandoe --- (In reply to Iain Sandoe from comment #11) > (In reply to Avi Kivity from comment #10) > > Reproduces on trunk: > this looks like a dup of PR 96056 - but I am happy to check the reduced case. erm PR 98056

[Bug c++/101420] ICE in build_special_member_call, at cp/call.c:10179

2021-07-12 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101420 --- Comment #11 from Iain Sandoe --- (In reply to Avi Kivity from comment #10) > Reproduces on trunk: > > #7 0x00b439af in cp_build_modify_expr (loc=1376651745, > lhs=0x7f0c55c12c60, modifycode=, rhs=0x7f0c55e63ee0, > complain=) at

[Bug c++/101420] ICE in build_special_member_call, at cp/call.c:10179

2021-07-12 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101420 --- Comment #6 from Iain Sandoe --- (In reply to Avi Kivity from comment #5) > How does one ask gcc to generate a backtrace on ICE? It produces one when libbacktrace is available, not aware of needing to do anything special; is there any other

[Bug c++/101420] ICE in build_special_member_call, at cp/call.c:10179

2021-07-12 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101420 --- Comment #4 from Iain Sandoe --- (In reply to Avi Kivity from comment #3) > Adding Iain since the ICE happens in a coroutine. Meanwhile my desktop is > reducing the testcase. do you have a backtrace?

[Bug target/100269] [12 Regression] i686 biarch compiler fails for Darwin after r12-36.

2021-07-06 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100269 Iain Sandoe changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug debug/101283] Several tests fail on Darwin with -gctf/gbtf

2021-07-05 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101283 --- Comment #11 from Iain Sandoe --- (In reply to Indu Bhagat from comment #10) > (In reply to Iain Sandoe from comment #9) > > (In reply to Iain Sandoe from comment #8) > > > we are now left with (where I suspect that the remaining fails are

[Bug debug/101283] Several tests fail on Darwin with -gctf/gbtf

2021-07-02 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101283 --- Comment #9 from Iain Sandoe --- (In reply to Iain Sandoe from comment #8) > we are now left with (where I suspect that the remaining fails are an > artefact of the way in which Darwin represents offsets instead of > relocations in DWARF

[Bug debug/101283] Several tests fail on Darwin with -gctf/gbtf

2021-07-02 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101283 --- Comment #8 from Iain Sandoe --- we are now left with (where I suspect that the remaining fails are an artefact of the way in which Darwin represents offsets instead of relocations in DWARF debug sections): Running target unix/-m64 Running

[Bug debug/101283] Several tests fail on Darwin with -gctf/gbtf

2021-07-02 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101283 --- Comment #5 from Iain Sandoe --- (In reply to Richard Biener from comment #4) > It might make sense to provide targets a means to opt-out of CTF/BTF support > and thus diagnose -gctf as unsupported on them. In the short-term, I've got fixes

[Bug debug/101283] Several tests fail on Darwin with -gctf

2021-07-01 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101283 --- Comment #3 from Iain Sandoe --- (In reply to Indu Bhagat from comment #2) > I see that .section directive needs a different semantic for Darwin. The > DWARF debug_info section, for example, appears as: > > .section

[Bug libstdc++/100017] [11/12 regression] error: 'fenv_t' has not been declared in '::' -- cross toolchain fails to build

2021-06-28 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100017 --- Comment #15 from Iain Sandoe --- @dave Perhaps you could post the patch at C#12 for review (it would be useful to get this cleared)

[Bug c++/101243] Coroutine lambda capture is destroyed twice

2021-06-28 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101243 --- Comment #2 from Iain Sandoe --- (In reply to Victor Burckel from comment #1) > May be similar to > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99576 > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98401 I agree this is likely to be a

[Bug c++/98056] ICE tree check: expected record_type or union_type or qual_union_type, have array_type in build_special_member_call, at cp/call.c:9862 since r11-2183-g0f66b8486cea8668

2021-06-19 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98056 Iain Sandoe changed: What|Removed |Added CC||greed at ispsystem dot com --- Comment #9

[Bug c++/100901] "error: array used as initializer" on compiling coroutine with initializer list with shared_ptr in it

2021-06-19 Thread iains at gcc dot gnu.org via Gcc-bugs
||iains at gcc dot gnu.org Resolution|--- |DUPLICATE --- Comment #2 from Iain Sandoe --- thanks for the report, this is already tracked in the mentioned PR *** This bug has been marked as a duplicate of bug 98056 ***

[Bug c++/101118] coroutines: unexpected ODR warning for coroutine frame type in LTO builds

2021-06-18 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101118 --- Comment #4 from Iain Sandoe --- (In reply to Nils Gladitz from comment #3) > Thanks for looking into this! just speculation so far ... > Any idea what the potential implications are? Not yet. > I assume I can't just ignore the warning

[Bug c++/101118] coroutines: unexpected ODR warning for coroutine frame type in LTO builds

2021-06-18 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101118 --- Comment #2 from Iain Sandoe --- hmm. __D.9984.3.4 means that this is a frame variable that is a 'promoted' temporary (promoted because its lifetime had to be extended across a suspend point by copying it into the frame). So, I am

[Bug c++/100897] Symmetric transfer does not prevent stack-overflow for C++20 coroutines

2021-06-11 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100897 --- Comment #3 from Iain Sandoe --- (In reply to Leonard von Merzljak from comment #2) > (In reply to Iain Sandoe from comment #1) > Thank you for your comment. I tried it out and can confirm that I don't get > a stack-overflow anymore if I

[Bug c++/100897] Symmetric transfer does not prevent stack-overflow for C++20 coroutines

2021-06-11 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100897 Iain Sandoe changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug c++/100850] [coroutine] Wrong addresses of variables captured by reference into lambda co-routines.

2021-06-02 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100850 Iain Sandoe changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRMED

[Bug c++/100850] [coroutine] Wrong addresses of variables captured by reference into lambda co-routines.

2021-06-02 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100850 --- Comment #4 from Iain Sandoe --- (In reply to Vlad from comment #3) > My bad. It's actually a UB. The lambda lifetime is just over by the moment > of resumption of the co-routine. (oddly enough) we were discussing thia in a BSI meeting

[Bug target/100340] Bootstrap fails with Clang 12.0.5 (XCode 12.5)

2021-05-25 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100340 --- Comment #9 from Iain Sandoe --- JFTR the Apple OSS folks comment: "I checked with the clang team — it appears this was an unintentional consequence of an upstream change: https://reviews.llvm.org/D75203. This difference between debug vs

[Bug target/100152] [10/11/12 Regression] used caller-saved register not preserved across a call.

2021-05-11 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100152 --- Comment #53 from Iain Sandoe --- on macOS 10.15 (Darwin19) with r12-637-g56103737 comparing unpatched / patched. -WARNING: 29_atomics/atomic_float/wait_notify.cc execution test program timed out. -FAIL:

[Bug bootstrap/100246] [11/12 Regression] GCC will not bootstrap with clang 3.4/3.5 [xcode 5/6, Darwin 12/13]

2021-05-10 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100246 --- Comment #6 from Iain Sandoe --- yet another permutation: This one keeps the const-ness of the contents, but provides a CTOR. Note the we build some of the gcov stuff with a C compiler and therefore this has to be conditional on C++. diff

[Bug target/100152] [10/11/12 Regression] used caller-saved register not preserved across a call.

2021-05-09 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100152 --- Comment #52 from Iain Sandoe --- (In reply to lucier from comment #51) > /Users/lucier/programs/gcc/gcc-mainline/libstdc++-v3/testsuite/29_atomics/ > atomic_integral/wait_notify.cc -std=gnu++2a -pthread > -fdiagnostics-plain-output

[Bug target/100152] [10/11/12 Regression] used caller-saved register not preserved across a call.

2021-05-09 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100152 --- Comment #50 from Iain Sandoe --- (In reply to lucier from comment #49) > > > Running > > > /Users/lucier/programs/gcc/gcc-mainline/libstdc++-v3/testsuite/libstdc++-dg/ > > > conformance.exp ... > > > WARNING: program timed out. > > > >

[Bug target/100347] [11/12 Regression] GCC 11 does not recognize skylake; translates "march=native" to "x86_64"

2021-05-09 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100347 --- Comment #17 from Iain Sandoe --- to complete the set: /src-local/gcc-master/configure --prefix=/opt/iains/x86_64-apple-darwin20/gcc-12-0-0 --build=x86_64-apple-darwin20 --with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk

[Bug target/100152] [10/11/12 Regression] used caller-saved register not preserved across a call.

2021-05-09 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100152 --- Comment #48 from Iain Sandoe --- (In reply to lucier from comment #47) > I downloaded > [Bradleys-Mac-mini:~/programs/gcc/gcc-mainline] lucier% git log -1 --oneline > 2254b3233b5 (HEAD -> master, origin/trunk, origin/master, origin/HEAD)

[Bug c++/100476] coroutines: questionable handling of void get_return_object

2021-05-07 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100476 --- Comment #5 from Iain Sandoe --- (In reply to Jason Merrill from comment #3) > (In reply to Jason Merrill from comment #2) > > (In reply to Iain Sandoe from comment #1) > > > I am by no means an expert at reading standardese - and it might

[Bug c++/100476] coroutines: questionable handling of void get_return_object

2021-05-07 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100476 --- Comment #4 from Iain Sandoe --- great, that does simplify things - and means that a useful error can be diagnosed from a mismatched type between g_r_o/g_r_o_o_a_f and the coroutine ramp return value. The statement about phasing of the

[Bug bootstrap/100246] [11/12 Regression] GCC will not bootstrap with clang 3.4/3.5 [xcode 5/6, Darwin 12/13]

2021-05-07 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100246 --- Comment #4 from Iain Sandoe --- for the record the patch in comment #3 allowed bootstrap to succeed on Darwin12 with clang 3.4-based Xcode.

[Bug c++/100476] coroutines: questionable handling of void get_return_object

2021-05-07 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100476 --- Comment #1 from Iain Sandoe --- I am by no means an expert at reading standardese - and it might be that I'm not alone, (library writers might have made the same assumption) but it seems to me that:

[Bug target/100347] [11/12 Regression] GCC 11 does not recognize skylake; translates "march=native" to "x86_64"

2021-05-07 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100347 --- Comment #16 from Iain Sandoe --- (In reply to Erik Schnetter from comment #15) > One thing that e.g. changed is that there is now a newer version of Apple > Clang. XCode 12.5 is broken, with compare-debug error : see PR100340 (already

[Bug target/100347] [11/12 Regression] GCC 11 does not recognize skylake; translates "march=native" to "x86_64"

2021-05-06 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100347 --- Comment #14 from Iain Sandoe --- (In reply to Erik Schnetter from comment #13) > The failing GCC 11.1.0 is built by Apple Clang 12.0.5 via Spack. Looking at > debug output, I see that Spack inserts a "-march=skylake" command line > option.

[Bug target/100347] [11/12 Regression] GCC 11 does not recognize skylake; translates "march=native" to "x86_64"

2021-05-06 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100347 --- Comment #11 from Iain Sandoe --- I also tried on a xeon w machine with darwin19 (macOS 10.15), where it detects skylake-avx512 (which is a reasonable description, although possibly cascadelake would be slightly more accurate)

[Bug target/100347] [11/12 Regression] GCC 11 does not recognize skylake; translates "march=native" to "x86_64"

2021-05-06 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100347 --- Comment #10 from Iain Sandoe --- build of 11.1 on macOS11 with no patches and default options $ ./gcc/xgcc -Bgcc /source/test/general/empty-main.c -S -fverbose-asm head -5 empty-main.s # GNU C17 (GCC) version 11.1.0

[Bug target/100347] [11/12 Regression] GCC 11 does not recognize skylake; translates "march=native" to "x86_64"

2021-05-06 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100347 --- Comment #8 from Iain Sandoe --- (In reply to Richard Biener from comment #7) > (In reply to Iru Cai from comment #6) > > I've checked host_detect_local_cpu() in gcc/config/i386/driver-i386.c. GCC > > detects x86 host CPU micro architecture

[Bug bootstrap/100373] [12 Regression] Darwin, Compare-debug fail after r12-248-gb58dc0b803057

2021-05-05 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100373 --- Comment #12 from Iain Sandoe --- (In reply to Richard Biener from comment #11) > Created attachment 50759 [details] > updated patch > > Fixed missing setting of wi.stmt in lower_emutls_phi_arg I regstrapped r12-248+ first patch (I added

[Bug bootstrap/100373] [12 Regression] Darwin, Compare-debug fail after r12-248-gb58dc0b803057

2021-05-05 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100373 --- Comment #10 from Iain Sandoe --- * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0) frame #0: 0x0001016a4bb3 cc1`::gimple_code(g=0x) at gimple.h:1782 1779 static

[Bug bootstrap/100246] [11/12 Regression] GCC will not bootstrap with clang 3.4/3.5 [xcode 5/6, Darwin 12/13]

2021-05-05 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100246 --- Comment #3 from Iain Sandoe --- Alan Modra posted the following alternate patch (which I will test with a clang-3.5 bootstrap): diff --git a/gcc/config/i386/i386.h b/gcc/config/i386/i386.h index 97d6f3863cb..cc3b1b6d666 100644 ---

[Bug bootstrap/100373] [12 Regression] Darwin, Compare-debug fail after r12-248-gb58dc0b803057

2021-05-04 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100373 --- Comment #7 from Iain Sandoe --- of course, this could be exposing some prexisting problem (but i did check that the previous revision did not show the problem). -fno-ipa-ra makes no difference.

[Bug bootstrap/100373] [12 Regression] Darwin, Compare-debug fail after r12-248-gb58dc0b803057

2021-05-04 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100373 --- Comment #6 from Iain Sandoe --- master @r12-438 doesn't fail compare debug (maybe some later change masks this) I think this will reproduce on a stage 1.. reduced: a; _Thread_local b; c() { long d = b; a = 0; b = 0; } cc1

[Bug bootstrap/100373] [12 Regression] Darwin, Compare-debug fail after r12-248-gb58dc0b803057

2021-05-04 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100373 --- Comment #4 from Iain Sandoe --- (In reply to Iain Sandoe from comment #3) > (In reply to Richard Biener from comment #2) > > Doesn't reproduce on x86_64-linux with bootstrapping with in-tree mpfr 4.1.0 > > it might well be some

[Bug bootstrap/100373] [12 Regression] Darwin, Compare-debug fail after r12-248-gb58dc0b803057

2021-05-04 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100373 --- Comment #3 from Iain Sandoe --- (In reply to Richard Biener from comment #2) > Doesn't reproduce on x86_64-linux with bootstrapping with in-tree mpfr 4.1.0 it might well be some corner-case, but Darwin is PIC by default, so it might be

[Bug target/100152] [10/11/12 Regression] used caller-saved register not preserved across a call.

2021-05-03 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100152 --- Comment #46 from Iain Sandoe --- Created attachment 50737 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50737=edit trial patch for testing looking at the way other ports handle things like use of registers in veneers etc. it seems

[Bug target/100152] [10/11/12 Regression] used caller-saved register not preserved across a call.

2021-05-02 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100152 --- Comment #45 from Iain Sandoe --- the i386 backend code already sets : TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS to true unconditionally. So, it seems that it might be necessary to find some way to adjust CALL_INSN_FUNCTION_USAGE.

[Bug bootstrap/100373] [12 Regression] Darwin, Compare-debug fail after r12-248-gb58dc0b803057

2021-05-02 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100373 --- Comment #1 from Iain Sandoe --- this happens with mpfr-4.x sources and not with mpfr-3.1.6.

[Bug bootstrap/100373] [12 Regression] Darwin, Compare-debug fail after r12-248-gb58dc0b803057

2021-05-01 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100373 Iain Sandoe changed: What|Removed |Added Keywords||build Target|

[Bug bootstrap/100373] New: [12 Regression] Darwin, Compare-debug fail after r12-248-gb58dc0b803057

2021-05-01 Thread iains at gcc dot gnu.org via Gcc-bugs
: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: iains at gcc dot gnu.org Target Milestone: --- Created attachment 50725 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50725=edit tarball with asm, objects and

[Bug target/100340] Bootstrap fails with Clang 12.0.5 (XCode 12.5)

2021-04-30 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100340 --- Comment #7 from Iain Sandoe --- (In reply to Iain Sandoe from comment #6) > (In reply to Richard Biener from comment #5) > > Does it work when you use STAGE1_CFLAGS="-O0" (I think clang defaults to > > optimizing?). To rule out

[Bug bootstrap/100340] Bootstrap fails with Clang 12.0.5 (XCode 12.5)

2021-04-30 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100340 --- Comment #6 from Iain Sandoe --- (In reply to Richard Biener from comment #5) > Does it work when you use STAGE1_CFLAGS="-O0" (I think clang defaults to > optimizing?). To rule out compare-debug issues also try > --without-build-config The

[Bug fortran/100183] Segmentation fault at runtime when passing an internal procedure as argument

2021-04-29 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100183 --- Comment #6 from Iain Sandoe --- (In reply to anlauf from comment #5) > (In reply to Iain Sandoe from comment #4) > > gcc304 is the Apple M1 machine. The GCC support there is highly > > experimental and not in master -- please note that

[Bug target/100269] [12 Regression] i686 biarch compiler fails for Darwin after r12-36.

2021-04-28 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100269 --- Comment #1 from Iain Sandoe --- Created attachment 50705 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50705=edit patch under test It doesn't seem that the rationale for the changes in r12-35/36 is captured anywhere I could find -

[Bug bootstrap/100269] [12 Regression] i686 biarch compiler fails for Darwin after r12-36.

2021-04-26 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100269 Iain Sandoe changed: What|Removed |Added Last reconfirmed||2021-04-26

[Bug bootstrap/100269] New: [12 Regression] i686 biarch compiler fails for Darwin after r12-36.

2021-04-26 Thread iains at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: iains at gcc dot gnu.org Target Milestone: --- With the fix at r12-50-ga44895ce7ffbc26b4d765c40b5b346f8c9a9b762 applied, bootstrap still fails for a 32b host with a 64b

[Bug bootstrap/100246] [11/12 Regression] GCC will not bootstrap with clang 3.4/3.5 [xcode 5/6, Darwin 12/13]

2021-04-24 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100246 --- Comment #1 from Iain Sandoe --- Created attachment 50669 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50669=edit Patch that works around the clang issue/bug this is against GCC-11.1rc2, but not likely to need much/any amendment for

[Bug target/100152] [10/11/12 Regression] used caller-saved register not preserved across a call.

2021-04-24 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100152 --- Comment #44 from Iain Sandoe --- unfortunately, wider testing showed sanitiser fails - so this has been reverted for now.

[Bug bootstrap/100246] [11/12 Regression] GCC will not bootstrap with clang 3.4/3.5 [xcode 5/6, Darwin 12/13]

2021-04-24 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100246 Iain Sandoe changed: What|Removed |Added Host||x86_64-darwin12, |

[Bug bootstrap/100246] New: [11/12 Regression] GCC will not bootstrap with clang 3.4/3.5 [xcode 5/6, Darwin 12/13]

2021-04-24 Thread iains at gcc dot gnu.org via Gcc-bugs
Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: iains at gcc dot gnu.org Target Milestone: --- using CC=clang and CXX="clang++ -stdlib=libc++" which is needed to get C++11 support. In file inc

[Bug target/100152] [10/11/12 Regression] used caller-saved register not preserved across a call.

2021-04-24 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100152 Iain Sandoe changed: What|Removed |Added Target Milestone|10.4|8.5 --- Comment #42 from Iain Sandoe

[Bug target/100152] [10/11/12 Regression] used caller-saved register not preserved across a call.

2021-04-23 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100152 --- Comment #41 from Iain Sandoe --- (In reply to Richard Biener from comment #40) > (In reply to Richard Biener from comment #39) > > (In reply to Iain Sandoe from comment #38) > > > (In reply to Richard Biener from comment #37) > > > > Oh,

[Bug target/100152] [10/11/12 Regression] used caller-saved register not preserved across a call.

2021-04-23 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100152 --- Comment #38 from Iain Sandoe --- (In reply to Richard Biener from comment #37) > Oh, and FYI a cc1 cross from x86_64 to x86_64-apple-darwin19.6.0 doesn't seem > to reproduce the issue with the reduced testcase (I seee no call to >

[Bug target/100152] [10/11/12 Regression] used caller-saved register not preserved across a call.

2021-04-23 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100152 --- Comment #36 from Iain Sandoe --- (In reply to Richard Biener from comment #35) > Which means another possible candidate for the "bug" is darwin_binds_local_p yeah... see below. > > > .. but something similar must apply to PLT and targets

[Bug target/100152] [10/11/12 Regression] used caller-saved register not preserved across a call.

2021-04-23 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100152 --- Comment #32 from Iain Sandoe --- (In reply to Iain Sandoe from comment #31) > (In reply to Richard Biener from comment #30) > > (In reply to Iain Sandoe from comment #29) > > > what is also somewhat peculiar is that replacing the first

[Bug target/100152] [10/11/12 Regression] used caller-saved register not preserved across a call.

2021-04-23 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100152 --- Comment #31 from Iain Sandoe --- (In reply to Richard Biener from comment #30) > (In reply to Iain Sandoe from comment #29) > > what is also somewhat peculiar is that replacing the first function in the > > reduced test case with "extern

[Bug target/100152] [10.3, 11, 12 Regression] used caller-saved register not preserved across a call.

2021-04-23 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100152 --- Comment #29 from Iain Sandoe --- what is also somewhat peculiar is that replacing the first function in the reduced test case with "extern void ___UTF_8_put(char *a, int b);" changes the code-gen for the second function.

[Bug target/100152] [10.3, 11, 12 Regression] used caller-saved register not preserved across a call.

2021-04-22 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100152 --- Comment #28 from Iain Sandoe --- reduced test case: ___UTF_8_put(char *a, int b) { char *c = a; int bytes; if (b <= 15) bytes = 2; else if (b <= 255) bytes = 4; else if (b <= 4095) bytes = 5; else bytes = 6; c

[Bug target/100152] [10.3, 11, 12 Regression] used caller-saved register not preserved across a call.

2021-04-22 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100152 Iain Sandoe changed: What|Removed |Added CC||rguenth at gcc dot gnu.org

[Bug target/100152] [10.3, 11, 12 Regression] [Darwin, X86] used caller-saved register not preserved across a call.

2021-04-22 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100152 Iain Sandoe changed: What|Removed |Added Target|x86_64-apple-darwin19.6.0 |x86_64-apple-darwin*

[Bug fortran/100183] Segmentation fault at runtime when passing an internal procedure as argument

2021-04-22 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100183 --- Comment #4 from Iain Sandoe --- (In reply to Ignacio Fernández Galván from comment #3) > If it helps, this happens in gcc304 from > https://cfarm.tetaneutral.net/machines/list/, but not in gcc80 gcc304 is the Apple M1 machine. The GCC

[Bug target/100152] Possible 10.3 bad code generation regression from 10.2/9.3 on Mac OS 10.15.7 (Catalina)

2021-04-21 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100152 --- Comment #22 from Iain Sandoe --- so it looks like the contents of r10 are being trashed by the call to ___UTF_8_put (the first call goes through the dylib lazy symbol resolution and that leaves r10 with a value pointing to some mutex).

[Bug target/100152] Possible 10.3 bad code generation regression from 10.2/9.3 on Mac OS 10.15.7 (Catalina)

2021-04-21 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100152 --- Comment #21 from Iain Sandoe --- (In reply to Iain Sandoe from comment #19) > (In reply to lucier from comment #18) > > I can't see to build mainline on this machine, it fails with > Yeah, there have been some patches pushed in early to

[Bug target/100152] Possible 10.3 bad code generation regression from 10.2/9.3 on Mac OS 10.15.7 (Catalina)

2021-04-21 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100152 --- Comment #20 from Iain Sandoe --- (In reply to Iain Sandoe from comment #17) > (In reply to lucier from comment #16) > > I have figured out how to build and then run the app in lldb to reliably > > reproduce the error. > I will try later on

[Bug target/100152] Possible 10.3 bad code generation regression from 10.2/9.3 on Mac OS 10.15.7 (Catalina)

2021-04-21 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100152 --- Comment #19 from Iain Sandoe --- (In reply to lucier from comment #18) > I can't see to build mainline on this machine, it fails with > > ../../../gcc-mainline/gcc/rtl.h:4547:42: error: use of undeclared identifier > 'TARGET_ISA_64BIT' >

[Bug target/100152] Possible 10.3 bad code generation regression from 10.2/9.3 on Mac OS 10.15.7 (Catalina)

2021-04-21 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100152 Iain Sandoe changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug target/100152] Possible 10.3 bad code generation regression from 10.2/9.3 on Mac OS 10.15.7 (Catalina)

2021-04-21 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100152 --- Comment #15 from Iain Sandoe --- I have to try and figure out a way to be able to reproduce the run-time error. Yes, the assembler output is different between 10.2 and 10.3 - but that insn is not apparently in error (and I checked that the

[Bug target/100152] Possible 10.3 bad code generation regression from 10.2/9.3 on Mac OS 10.15.7 (Catalina)

2021-04-20 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100152 --- Comment #11 from Iain Sandoe --- (In reply to lucier from comment #10) > (In reply to Iain Sandoe from comment #8) > > (In reply to lucier from comment #7) > > > (In reply to Iain Sandoe from comment #6) > > > > > > > yes please - also the

[Bug target/100152] Possible 10.3 bad code generation regression from 10.2/9.3 on Mac OS 10.15.7 (Catalina)

2021-04-20 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100152 --- Comment #8 from Iain Sandoe --- (In reply to lucier from comment #7) > (In reply to Iain Sandoe from comment #6) > > > yes please - also the original source, if that's OK? > > It's highly macrofied C code with a lot of "includes"; is the

[Bug target/100152] Possible 10.3 bad code generation regression from 10.2/9.3 on Mac OS 10.15.7 (Catalina)

2021-04-20 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100152 --- Comment #6 from Iain Sandoe --- (In reply to lucier from comment #5) > I didn't have this trouble with 10.2 or 9.3; should I add these to the > "Known to work" field? yes please - also the original source, if that's OK?

[Bug target/100152] Possible 10.3 bad code generation regression from 10.2/9.3 on Mac OS 10.15.7 (Catalina)

2021-04-20 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100152 --- Comment #4 from Iain Sandoe --- (In reply to Iain Sandoe from comment #3) > please could you check the uploaded assembly file, it seems to be truncated? Ignore that - decompressor glitch.

[Bug target/100152] Possible 10.3 bad code generation regression from 10.2/9.3 on Mac OS 10.15.7 (Catalina)

2021-04-20 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100152 Iain Sandoe changed: What|Removed |Added CC||iains at gcc dot gnu.org --- Comment #3

[Bug c++/100127] [coroutines] internal compiler error compiling promise with custom awaiter

2021-04-19 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100127 --- Comment #1 from Iain Sandoe --- I think that this issue is already fixed in the released 10.3 branch and in master (will shortly become GCC11). Please could you try one of those? $ ./gcc-10/gcc-10/bin/g++ -std=c++20 -fcoroutines

[Bug libstdc++/99875] [10 Regression] experimental filesystem fails on Darwin

2021-04-01 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99875 Iain Sandoe changed: What|Removed |Added Target||x86_64-darwin, i686-darwin

[Bug libstdc++/99875] New: [10 Regression] experimental filesystem fails on Darwin

2021-04-01 Thread iains at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: iains at gcc dot gnu.org Target Milestone: --- On the RC1 for 10.3 === libstdc++ Summary === # of unexpected failures51 of the form Excess errors: /src-local

<    3   4   5   6   7   8   9   10   11   12   >