[Bug d/115295] [15 regression] Various gdc testsuite regressions

2024-06-11 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115295 --- Comment #3 from Iain Buclaw --- (In reply to Alexandre Oliva from comment #2) > Ugh, it looks like D deviates from one of the fundamental assumptions behind > the change, namely, that for each named source file, the compiler would > attempt

[Bug d/114434] gdc.test/runnable/test23514.d FAILs

2024-06-02 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114434 Iain Buclaw changed: What|Removed |Added CC||ibuclaw at gcc dot gnu.org --- Comment

[Bug tree-optimization/115138] [15 Regression] Bootstrap compare-debug fail after r15-580-gf3e5f4c58591f5

2024-05-22 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115138 --- Comment #21 from Iain Buclaw --- Now doing a fair comparison: Command: g++-11 -std=c++11 \ -fno-PIE -c -O3 -g -fno-checking -DIN_GCC -fno-exceptions \ -fno-rtti -fasynchronous-unwind-tables \ -W -Wall -Wno-narrowing

[Bug tree-optimization/115138] [15 Regression] Bootstrap compare-debug fail after r15-580-gf3e5f4c58591f5

2024-05-22 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115138 --- Comment #20 from Iain Buclaw --- Stepping through both the stage1-gcc/gdc and stage2-gcc/gdc compilers, there is an apparent divergence in behaviour at this point in gimplify.cc 6527│ /* Now that the LHS is gimplified, re-gimplify the

[Bug tree-optimization/115138] [15 Regression] Bootstrap compare-debug fail after r15-580-gf3e5f4c58591f5

2024-05-22 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115138 --- Comment #19 from Iain Buclaw --- (In reply to Iain Buclaw from comment #18) > Reduction of opover.d > ``` > bool __setArrayAllocLength(size_t newLength) > { > import core.checkedint; > bool overflow; > addu(newLength, >

[Bug tree-optimization/115138] [15 Regression] Bootstrap compare-debug fail after r15-580-gf3e5f4c58591f5

2024-05-22 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115138 --- Comment #18 from Iain Buclaw --- Reduction of opover.d ``` bool __setArrayAllocLength(size_t newLength) { import core.checkedint; bool overflow; addu(newLength, addu(0, 0, overflow), overflow); return

[Bug tree-optimization/115138] [15 Regression] Bootstrap compare-debug fail after r15-580-gf3e5f4c58591f5

2024-05-22 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115138 --- Comment #16 from Iain Buclaw --- (In reply to Richard Biener from comment #15) > Note the opover.d compile doesn't even use -O3, so this is all extremely > odd. It would somehow point at a miscompile of the stage2 compiler by > the stage1

[Bug tree-optimization/115138] [15 Regression] Bootstrap compare-debug fail after r15-580-gf3e5f4c58591f5

2024-05-22 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115138 --- Comment #11 from ibuclaw at gcc dot gnu.org --- (In reply to Iain Sandoe from comment #0) > At present, still trying to figure out how to debug this further .. it's D > so no preprocessed output - I guess will have to try tree

[Bug d/112408] [12/13/14 regression] d21 loops in getCpuInfo0B in Solaris/x86 kernel zone

2023-11-07 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112408 --- Comment #7 from ibuclaw at gcc dot gnu.org --- Patch ready to apply to releases/gcc-13, and backports to gcc-12 and gcc-11. Mainline will get this in the next upstream merge.

[Bug d/112408] [12/13/14 regression] d21 loops in getCpuInfo0B in Solaris/x86 kernel zone

2023-11-07 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112408 --- Comment #5 from ibuclaw at gcc dot gnu.org --- Upstream PR https://github.com/dlang/dmd/pull/15778

[Bug d/112408] [12/13/14 regression] d21 loops in getCpuInfo0B in Solaris/x86 kernel zone

2023-11-06 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112408 --- Comment #3 from ibuclaw at gcc dot gnu.org --- Based on what I see here, this patch to core.cpuid should be sufficient to fix loop and not introduce any change in existing behaviour. --- --- a/druntime/src/core/cpuid.d +++ b/druntime/src

[Bug d/112408] [12/13/14 regression] d21 loops in getCpuInfo0B in Solaris/x86 kernel zone

2023-11-06 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112408 ibuclaw at gcc dot gnu.org changed: What|Removed |Added CC||ibuclaw at gcc dot gnu.org

[Bug d/110712] d: ICE: verify_gimple_failed (conversion of register to a different size in 'view_convert_expr')

2023-10-29 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110712 ibuclaw at gcc dot gnu.org changed: What|Removed |Added Resolution|--- |FIXED CC

[Bug d/112270] ICE: in verify_gimple_in_seq on powerpc-darwin9

2023-10-28 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112270 ibuclaw at gcc dot gnu.org changed: What|Removed |Added Resolution|--- |FIXED Status

[Bug d/112270] New: ICE: in verify_gimple_in_seq on powerpc-darwin9

2023-10-28 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
: d Assignee: ibuclaw at gdcproject dot org Reporter: ibuclaw at gcc dot gnu.org Target Milestone: --- Mismatching D and C boolean types causes ICE on powerpc-darwin. ---../../gcc/d/dmd/cppmangle.d: In function ‘isNamespaceEqual’: ../../gcc/d/dmd/cppmangle.d:2354:14: error

[Bug d/103578] d21 doesn't link on Darwin/i386

2023-10-28 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103578 ibuclaw at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug d/111537] ICE: in set_cell_span, at text-art/table.cc:148 with D front-end and -fanalyzer

2023-10-14 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111537 ibuclaw at gcc dot gnu.org changed: What|Removed |Added Resolution|--- |FIXED Status

[Bug d/111537] ICE: in set_cell_span, at text-art/table.cc:148 with D front-end and -fanalyzer

2023-10-13 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111537 ibuclaw at gcc dot gnu.org changed: What|Removed |Added CC||ibuclaw at gcc dot gnu.org

[Bug d/110959] gdc: internal compiler error: in layout_aggregate_type in recursive templated class

2023-08-15 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110959 ibuclaw at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug d/108842] Cannot use enum array with -fno-druntime

2023-07-07 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108842 ibuclaw at gcc dot gnu.org changed: What|Removed |Added Resolution|--- |FIXED CC

[Bug d/108962] d: Don't generate code that throws exceptions when compiling with `-fno-exceptions'

2023-07-02 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108962 ibuclaw at gcc dot gnu.org changed: What|Removed |Added Resolution|--- |FIXED Status

[Bug d/110516] core.volatile.volatileLoad discarded if result is unused

2023-07-01 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110516 ibuclaw at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug d/110516] core.volatile.volatileLoad is broken

2023-07-01 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110516 --- Comment #2 from ibuclaw at gcc dot gnu.org --- (In reply to Witold Baryluk from comment #0) > I did not test volatileStore, but I would not be surprised it is also broken. volatileStore is fine, because that expands to an assignment, wh

[Bug d/110514] d: accesses of immutable arrays using constant index still bounds checked

2023-07-01 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110514 ibuclaw at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug d/110516] core.volatile.volatileLoad is broken

2023-07-01 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110516 ibuclaw at gcc dot gnu.org changed: What|Removed |Added CC||ibuclaw at gcc dot gnu.org

[Bug d/110514] New: d: accesses immutable arrays using constant index still bounds checked

2023-07-01 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: d Assignee: ibuclaw at gdcproject dot org Reporter: ibuclaw at gcc dot gnu.org Target Milestone: --- For example: --- immutable uint[] arr = [1,2,3]; void test() { immutable uint* p = arr.ptr; if (arr[0]== p[0] &&am

[Bug d/110471] d: Don't generate code that throws exceptions when compiling with `-fno-exceptions'

2023-07-01 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110471 ibuclaw at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug d/110511] d: internal compiler error: in setValue, at d/dmd/dinterpret.c:7013

2023-07-01 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110511 ibuclaw at gcc dot gnu.org changed: What|Removed |Added Resolution|--- |FIXED Status

[Bug d/110511] d: internal compiler error: in setValue, at d/dmd/dinterpret.c:7013

2023-07-01 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110511 ibuclaw at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last

[Bug d/110511] New: d: internal compiler error: in setValue, at d/dmd/dinterpret.c:7013

2023-07-01 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: d Assignee: ibuclaw at gdcproject dot org Reporter: ibuclaw at gcc dot gnu.org Target Milestone: --- Only affects gdc-11 and earlier. --- void formattedRead() { cast(void)checkFormatException!(); } const checkFormatException

[Bug d/110471] New: d: Don't generate code that throws exceptions when compiling with `-fno-exceptions'

2023-06-28 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
Severity: normal Priority: P3 Component: d Assignee: ibuclaw at gdcproject dot org Reporter: ibuclaw at gcc dot gnu.org Target Milestone: --- The predefined version conditions D_ModuleInfo, D_Exceptions, and D_TypeInfo were added in r9-7112. However

[Bug d/106977] [13/14 regression] d21 dies with SIGBUS on 32-bit Darwin

2023-06-28 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106977 --- Comment #34 from ibuclaw at gcc dot gnu.org --- I think this should be fixed now. I'll let @Iain Sandoe confirm, as there are likely other fixes he has relating to the testsuite.

[Bug target/110406] d: Wrong code-gen returning POD structs by value

2023-06-28 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110406 ibuclaw at gcc dot gnu.org changed: What|Removed |Added Resolution|--- |FIXED Status

[Bug target/110406] d: Wrong code-gen returning POD structs by value

2023-06-28 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110406 ibuclaw at gcc dot gnu.org changed: What|Removed |Added Last reconfirmed||2023-06-28 Ever

[Bug d/110193] d_signed_or_unsigned_type is invoked for vector types

2023-06-28 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110193 ibuclaw at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED

[Bug target/110406] d: Wrong code-gen returning POD structs by value

2023-06-26 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110406 --- Comment #10 from ibuclaw at gcc dot gnu.org --- Looking at an ICE in stage2 D compiler for i686-darwin17, I realized that it's another facet of this issue. // aggregate.d import dsymbol; extern (C++) class AggregateDeclaration

[Bug target/110406] d: Wrong code-gen returning POD structs by value

2023-06-26 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110406 --- Comment #9 from ibuclaw at gcc dot gnu.org --- (In reply to ibuclaw from comment #8) > So long as C and D agree with each other when it comes to POD types, it > almost doesn't matter to me weather the back-end is following the wro

[Bug target/110406] d: Wrong code-gen returning POD structs by value

2023-06-26 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110406 --- Comment #8 from ibuclaw at gcc dot gnu.org --- (In reply to Andrew Pinski from comment #7) > (In reply to Andrew Pinski from comment #6) > > Which itself is GCC 12+ regression too ... > > I filed that as PR 110407, let's s

[Bug target/110406] d: Wrong code-gen returning POD structs by value

2023-06-25 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110406 --- Comment #4 from ibuclaw at gcc dot gnu.org --- It would be good if TYPE_MODE no longer had such a strong influence though. In the meantime, I ought to restore behaviour to how it was in 12.x

[Bug target/110406] d: Wrong code-gen returning POD structs by value

2023-06-25 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110406 --- Comment #3 from ibuclaw at gcc dot gnu.org --- (In reply to Andrew Pinski from comment #2) > >structs have been set the wrong mode > > No, they don't have wrong mode, just the x86_64 backend is broken, see bug > 10

[Bug d/110406] New: d: Wrong code-gen returning POD structs by value

2023-06-25 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
Component: d Assignee: ibuclaw at gdcproject dot org Reporter: ibuclaw at gcc dot gnu.org Target Milestone: --- Since 13.1 (r13-1104?), structs have been set the wrong mode, causing them to return differently to equivalent static arrays. --- struct cpuid_abcd_t { uint eax

[Bug d/110359] d: Suboptimal codegen for __builtin_expect(cond, false) since PR96435

2023-06-25 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110359 ibuclaw at gcc dot gnu.org changed: What|Removed |Added Resolution|--- |FIXED Status

[Bug d/110113] gdc -fpreview=dip1021 crash in d/dmd/root/aav.d:127 dmd_aaGetRvalue from DsymbolTable::lookup(Identifier const*)

2023-06-25 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110113 ibuclaw at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[Bug d/110359] New: d: Suboptimal codegen for __builtin_expect(cond, false) since PR96435

2023-06-21 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
: normal Priority: P3 Component: d Assignee: ibuclaw at gdcproject dot org Reporter: ibuclaw at gcc dot gnu.org Target Milestone: --- Since pr96435, both boolean objects *and* expressions have been evaluated in the following way. (*(ubyte*)_or_expr) &am

[Bug d/110193] d_signed_or_unsigned_type is invoked for vector types

2023-06-10 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110193 --- Comment #4 from ibuclaw at gcc dot gnu.org --- A shortcut to signed_or_unsigned_type_for for vector types seems reasonable nonetheless.

[Bug d/110193] d_signed_or_unsigned_type is invoked for vector types

2023-06-10 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110193 --- Comment #3 from ibuclaw at gcc dot gnu.org --- (In reply to ibuclaw from comment #2) > Gimple dump: > --- > __vector(int[4]) rshift (__vector(int[4]) v) > { > __vector(int[4]) D.1795; > > _1

[Bug d/110193] d_signed_or_unsigned_type is invoked for vector types

2023-06-10 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110193 ibuclaw at gcc dot gnu.org changed: What|Removed |Added CC||ibuclaw at gcc dot gnu.org

[Bug d/110113] gdc -fpreview=dip1021 crash in d/dmd/root/aav.d:127 dmd_aaGetRvalue from DsymbolTable::lookup(Identifier const*)

2023-06-10 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110113 ibuclaw at gcc dot gnu.org changed: What|Removed |Added Status|WAITING |ASSIGNED --- Comment #9

[Bug d/110113] gdc -fpreview=dip1021 crash in d/dmd/root/aav.d:127 dmd_aaGetRvalue from DsymbolTable::lookup(Identifier const*)

2023-06-07 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110113 ibuclaw at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |WAITING Ever confirmed

[Bug d/110113] gdc -fpreview=dip1021 crash in d/dmd/root/aav.d:127 dmd_aaGetRvalue from DsymbolTable::lookup(Identifier const*)

2023-06-07 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110113 --- Comment #7 from ibuclaw at gcc dot gnu.org --- Same, but without any compiler errors. This is reproducible in upstream dmd too. dmd -lowmem -preview=dip1021 pr110113.d -o- --- class LUBench { } void lup(ulong , ulong , int , int = 1

[Bug d/110113] gdc -fpreview=dip1021 crash in d/dmd/root/aav.d:127 dmd_aaGetRvalue from DsymbolTable::lookup(Identifier const*)

2023-06-07 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110113 --- Comment #6 from ibuclaw at gcc dot gnu.org --- Full reduction without any imports. --- class LUBench { } void lup(ulong , ulong , int , int = 1) { new LUBench; } void lup_3200(ulong iters, ulong flops) { lup(iters, flops, 3200

[Bug d/110113] gdc -fpreview=dip1021 crash in d/dmd/root/aav.d:127 dmd_aaGetRvalue from DsymbolTable::lookup(Identifier const*)

2023-06-06 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110113 --- Comment #5 from ibuclaw at gcc dot gnu.org --- Reducing the std module down to the following always produces a crash in dmd_aaGetRvalue when running debian/ubuntu pre-compiled gdc-13 under gdb. --- struct Tid { MessageBox mbox

[Bug d/110113] gdc -fpreview=dip1021 crash in d/dmd/root/aav.d:127 dmd_aaGetRvalue from DsymbolTable::lookup(Identifier const*)

2023-06-06 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110113 --- Comment #4 from ibuclaw at gcc dot gnu.org --- Test case should deterministically crash when kernel.randomize_va_space=0.

[Bug d/110113] gdc -fpreview=dip1021 crash in d/dmd/root/aav.d:127 dmd_aaGetRvalue from DsymbolTable::lookup(Identifier const*)

2023-06-06 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110113 ibuclaw at gcc dot gnu.org changed: What|Removed |Added CC||ibuclaw at gcc dot gnu.org

[Bug d/109144] d: Closure fields don't get same alignment as local variable

2023-03-16 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109144 ibuclaw at gcc dot gnu.org changed: What|Removed |Added Version|11.0|12.0 Resolution

[Bug d/109144] New: d: Closure fields don't get same alignment as local variable

2023-03-15 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: d Assignee: ibuclaw at gdcproject dot org Reporter: ibuclaw at gcc dot gnu.org Target Milestone: --- Between the variable declaration, and building its associated field in a closure, the decl alignment gets lost, so this fails. --- void main

[Bug d/109108] d: Undefined reference to lambda in private enum

2023-03-14 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109108 ibuclaw at gcc dot gnu.org changed: What|Removed |Added Resolution|--- |FIXED Status

[Bug d/109108] New: d: Undefined reference to lambda in private enum

2023-03-12 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
: d Assignee: ibuclaw at gdcproject dot org Reporter: ibuclaw at gcc dot gnu.org Target Milestone: --- Similar to pr108055. Lambdas should be emitted in every module they are referenced from. ``` import other; void main() { auto a = callFun(1); } ``` ``` private enum

[Bug d/109023] New: d: Add option to include imported modules in the compilation

2023-03-04 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: d Assignee: ibuclaw at gdcproject dot org Reporter: ibuclaw at gcc dot gnu.org Target Milestone: --- The reference D compiler has an option `-i` that enables "include imports" mode, where the compiler will include import

[Bug d/108763] va_arg usage in D doesn't compile

2023-03-03 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108763 ibuclaw at gcc dot gnu.org changed: What|Removed |Added Resolution|--- |WONTFIX Status

[Bug d/108877] Explicit immutable struct import internal compiler error

2023-03-02 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108877 ibuclaw at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug d/108167] d: internal compiler error: in binary_op, at d/expr.cc:117

2023-03-02 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108167 ibuclaw at gcc dot gnu.org changed: What|Removed |Added Resolution|--- |FIXED Status

[Bug d/108945] [13.0] d: vector float comparison doesn't result in 0 or -1

2023-03-02 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108945 ibuclaw at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug d/108946] [13.0] d: Identity comparison of vectors not supported

2023-03-02 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108946 ibuclaw at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug d/108962] New: d: Don't generate code that throws exceptions when compiling with `-fno-exceptions'

2023-02-27 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
Severity: normal Priority: P3 Component: d Assignee: ibuclaw at gdcproject dot org Reporter: ibuclaw at gcc dot gnu.org Target Milestone: --- There are a few constructs that implicitly raise an Error exception, for example, `final switch`. ``` void main

[Bug d/108946] New: [13.0] d: Identity comparison of vectors not supported

2023-02-27 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
Component: d Assignee: ibuclaw at gdcproject dot org Reporter: ibuclaw at gcc dot gnu.org Target Milestone: --- The operation `bool r = vector1 is vector2;` should be allowed by the D front-end codegen, and have a boolean result.

[Bug d/108945] New: [13.0] d: vector float comparison doesn't result in 0 or -1

2023-02-27 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: d Assignee: ibuclaw at gdcproject dot org Reporter: ibuclaw at gcc dot gnu.org Target Milestone: --- This is because we're using VEC_COND_EXPR using a float vector in both the true and false branches, this then reinterprets `-1.0f

[Bug d/108877] Explicit immutable struct import internal compiler error

2023-02-25 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108877 ibuclaw at gcc dot gnu.org changed: What|Removed |Added CC||ibuclaw at gcc dot gnu.org

[Bug d/106977] [13 regression] d21 dies with SIGBUS on 32-bit Darwin

2023-02-24 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106977 --- Comment #29 from ibuclaw at gcc dot gnu.org --- (In reply to Iain Sandoe from comment #27) > great! > > we make more progress now - at least past libphobos configure: > > we now fail building druntime/core/atomic.d and I am

[Bug d/106977] [13 regression] d21 dies with SIGBUS on 32-bit Darwin

2023-02-24 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106977 --- Comment #26 from ibuclaw at gcc dot gnu.org --- Comparing the D and C++ trees side by side. At the point of `finish_function` for the ::vis() method, I see the following: D: type

[Bug d/106977] [13 regression] d21 dies with SIGBUS on 32-bit Darwin

2023-02-24 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106977 --- Comment #24 from ibuclaw at gcc dot gnu.org --- (In reply to Iain Sandoe from comment #23) > So the ABIs differ in this (as noted on IRC, the Darwin 32b ABIs are not the > same as Linux). I'm still yet to work out why D on 32-bit

[Bug d/106977] [13 regression] d21 dies with SIGBUS on 32-bit Darwin

2023-02-23 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106977 --- Comment #22 from ibuclaw at gcc dot gnu.org --- (In reply to ibuclaw from comment #21) > There is something about the Darwin ABI I'm just not getting from looking at > the front-end alone though: Taken from a test Iain had sent me, an

[Bug d/106977] [13 regression] d21 dies with SIGBUS on 32-bit Darwin

2023-02-23 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106977 --- Comment #21 from ibuclaw at gcc dot gnu.org --- There is something about the Darwin ABI I'm just not getting from looking at the front-end alone though: C++ Darwin 32-bit calling a method that returns an 8 byte struct: ``` __Z4testP3Bar

[Bug d/106977] [13 regression] d21 dies with SIGBUS on 32-bit Darwin

2023-02-23 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106977 --- Comment #20 from ibuclaw at gcc dot gnu.org --- (In reply to Andrew Pinski from comment #19) > (In reply to Andrew Pinski from comment #18) > > > I think the visibility type is POD (assuming D has that concept) > > At l

[Bug d/106977] [13 regression] d21 dies with SIGBUS on 32-bit Darwin

2023-02-23 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106977 --- Comment #13 from ibuclaw at gcc dot gnu.org --- Confirmed, D is doing NRVO return whereas C++ isn't. gdc-11 codegen of the `visible` method: --- struct Visibility visible (struct AggregateDeclaration * const this) { return

[Bug d/106977] [13 regression] d21 dies with SIGBUS on 32-bit Darwin

2023-02-23 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106977 --- Comment #12 from ibuclaw at gcc dot gnu.org --- Looks like a bad mismatch between C++ and D. When C++ calls the method, it pushes one register. When D calls it, pushes two. Looks like the method itself returns the result in 2 registers

[Bug d/106977] [13 regression] d21 dies with SIGBUS on 32-bit Darwin

2023-02-23 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106977 --- Comment #10 from ibuclaw at gcc dot gnu.org --- Without using `->visible()` would be something like: --- a/gcc/d/decl.cc +++ b/gcc/d/decl.cc @@ -2559,10 +2561,17 @@ set_linkage_for_decl (tree decl) void set_visibility_for_decl (tree n

[Bug d/106977] [13 regression] d21 dies with SIGBUS on 32-bit Darwin

2023-02-23 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106977 --- Comment #9 from ibuclaw at gcc dot gnu.org --- (In reply to Iain Sandoe from comment #8) > + > +/* NODE is a FUNCTION_DECL, VAR_DECL or RECORD_TYPE for the declaration SYM. > + Set flags to reflect visibility that NODE

[Bug d/106977] [13 regression] d21 dies with SIGBUS on 32-bit Darwin

2023-02-22 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106977 ibuclaw at gcc dot gnu.org changed: What|Removed |Added CC||ibuclaw at gcc dot gnu.org

[Bug d/108763] va_arg usage in D doesn't compile

2023-02-12 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108763 --- Comment #6 from ibuclaw at gcc dot gnu.org --- I'll add it as a note to the deviations page. https://gcc.gnu.org/onlinedocs/gdc/Missing-Features.html#Missing-Features I'd actually forgotten about this.

[Bug d/108763] va_arg usage in D doesn't compile

2023-02-12 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108763 ibuclaw at gcc dot gnu.org changed: What|Removed |Added CC||ibuclaw at gcc dot gnu.org

[Bug d/108408] libphobos: Support building on *-*-cygwin

2023-01-23 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108408 --- Comment #5 from ibuclaw at gcc dot gnu.org --- (In reply to Corinna from comment #4) > I'm not sure what you mean with "hybrid". Probably the wrong word to use, based on what I was told via gcc irc. """ the

[Bug d/108408] libphobos: Support building on *-*-cygwin

2023-01-23 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108408 --- Comment #3 from ibuclaw at gcc dot gnu.org --- So a big part of what's missing in druntime bindings is *any* declarations for version(CRuntime_Newlib) targets. Though as I understand it, Cygwin is a bit of a hybrid in that matter.

[Bug d/108408] libphobos: Support building on *-*-cygwin

2023-01-23 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108408 ibuclaw at gcc dot gnu.org changed: What|Removed |Added CC||ibuclaw at gcc dot gnu.org

[Bug d/108167] New: d: internal compiler error: in binary_op, at d/expr.cc:117

2022-12-18 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: d Assignee: ibuclaw at gdcproject dot org Reporter: ibuclaw at gcc dot gnu.org Target Milestone: --- auto gdcTrunkICE(const(ubyte[32])[] a) { return cast(const(ubyte)*)[1][0]; } Caused by a front-end change that changed `[1][0]` into `[1

[Bug d/106832] Missing powerpc64le-linux support for D

2022-09-14 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106832 ibuclaw at gcc dot gnu.org changed: What|Removed |Added CC||ibuclaw at gcc dot gnu.org

[Bug d/105544] gdc fails to compile d source from stdin

2022-05-12 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105544 --- Comment #10 from ibuclaw at gcc dot gnu.org --- (In reply to Fabian Vogt from comment #9) > (In reply to ibuclaw from comment #8) > > (In reply to Fabian Vogt from comment #6) > > > I had a quick debugging session: The DMD

[Bug d/105544] gdc fails to compile d source from stdin

2022-05-12 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105544 --- Comment #8 from ibuclaw at gcc dot gnu.org --- (In reply to Fabian Vogt from comment #6) > I had a quick debugging session: The DMD lexer code doesn't really care > about the size of the buffer and instead runs until it encounters eith

[Bug d/105544] gdc fails to compile d source from stdin

2022-05-11 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105544 --- Comment #4 from ibuclaw at gcc dot gnu.org --- Ah, it's likely something even more fiendish than that. What encodings are you using? (i.e: locale -a)

[Bug d/105544] gdc fails to compile d source from stdin

2022-05-10 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105544 --- Comment #2 from ibuclaw at gcc dot gnu.org --- What version of glibc are you using? Not encountered this myself from debian's gcc packages. $ echo "pragma(msg, int(__VERSION__));" | /usr/bin/gdc-9 -c -x d - 2076 $ echo "

[Bug d/103604] [12 Regression] trunk 20210506 fails to build in libphobos on mips64el-linux-gnu

2021-12-13 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103604 ibuclaw at gcc dot gnu.org changed: What|Removed |Added Status|WAITING |ASSIGNED --- Comment #8

[Bug d/103604] [12 Regression] trunk 20210506 fails to build in libphobos on mips64el-linux-gnu

2021-12-13 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103604 ibuclaw at gcc dot gnu.org changed: What|Removed |Added CC||ibuclaw at gcc dot gnu.org

[Bug d/102837] [12 regression] Many 32-bit gdc tests FAIL

2021-10-25 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102837 ibuclaw at gcc dot gnu.org changed: What|Removed |Added CC||ibuclaw at gcc dot gnu.org

[Bug tree-optimization/102673] [9 Regression] Wrong code with -O due to adjust_cond_for_loop_until_wrap

2021-10-09 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102673 ibuclaw at gcc dot gnu.org changed: What|Removed |Added Resolution|DUPLICATE |FIXED --- Comment #4 from

[Bug tree-optimization/102673] [9 Regression] Wrong code with -O due to adjust_cond_for_loop_until_wrap

2021-10-09 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102673 --- Comment #2 from ibuclaw at gcc dot gnu.org --- (In reply to ibuclaw from comment #0) > Bisected, and the commit that changed behaviour was the fix for pr84648. Commit was r9-4145.

[Bug tree-optimization/102673] [9 Regression] Wrong code with -O due to adjust_cond_for_loop_until_wrap

2021-10-09 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102673 --- Comment #1 from ibuclaw at gcc dot gnu.org --- Since pr101145, the function this now happens in is number_of_iterations_until_wrap.

[Bug tree-optimization/102673] New: [9 Regression] Wrong code with -O due to adjust_cond_for_loop_until_wrap

2021-10-09 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: ibuclaw at gcc dot gnu.org Target Milestone: --- Reduced test, when compiled with -O, optimizes the loop into `return 1;`. --- int main() { for (unsigned a = 0

[Bug d/102618] d-demangle: anonymous symbols are not being properly skipped

2021-10-08 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102618 ibuclaw at gcc dot gnu.org changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |ibuclaw at gcc dot

[Bug d/102094] New: d: ICE in gimple_register_canonical_type_1, at lto/lto-common.c:430

2021-08-27 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: d Assignee: ibuclaw at gdcproject dot org Reporter: ibuclaw at gcc dot gnu.org Target Milestone: --- Looks like there's a TYPE_CXX_ODR_P mismatch between D closure frames and user defined types. --- extern(C) int printf(char* s

[Bug d/102093] New: d: Add --enable-d-flags= configure option to libphobos

2021-08-27 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
Component: d Assignee: ibuclaw at gdcproject dot org Reporter: ibuclaw at gcc dot gnu.org Target Milestone: --- To do the same action as --enable-cxx-flags=

  1   2   >