* [Bug d/104835] [12 Regression] libphobos fails to build on mips64el-linux-gnu
2022-03-08 8:17 [Bug d/104835] New: [12 Regression] libphobos fails to build on mips64el-linux-gnu doko at gcc dot gnu.org
@ 2022-03-08 8:19 ` rguenth at gcc dot gnu.org
2022-03-09 9:35 ` rguenth at gcc dot gnu.org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-03-08 8:19 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104835
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |12.0
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug d/104835] [12 Regression] libphobos fails to build on mips64el-linux-gnu
2022-03-08 8:17 [Bug d/104835] New: [12 Regression] libphobos fails to build on mips64el-linux-gnu doko at gcc dot gnu.org
2022-03-08 8:19 ` [Bug d/104835] " rguenth at gcc dot gnu.org
@ 2022-03-09 9:35 ` rguenth at gcc dot gnu.org
2022-03-09 10:30 ` ibuclaw at gdcproject dot org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-03-09 9:35 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104835
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P4
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug d/104835] [12 Regression] libphobos fails to build on mips64el-linux-gnu
2022-03-08 8:17 [Bug d/104835] New: [12 Regression] libphobos fails to build on mips64el-linux-gnu doko at gcc dot gnu.org
2022-03-08 8:19 ` [Bug d/104835] " rguenth at gcc dot gnu.org
2022-03-09 9:35 ` rguenth at gcc dot gnu.org
@ 2022-03-09 10:30 ` ibuclaw at gdcproject dot org
2022-03-10 23:56 ` ibuclaw at gdcproject dot org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: ibuclaw at gdcproject dot org @ 2022-03-09 10:30 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104835
Iain Buclaw <ibuclaw at gdcproject dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |syq at debian dot org
--- Comment #1 from Iain Buclaw <ibuclaw at gdcproject dot org> ---
*** Bug 104538 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug d/104835] [12 Regression] libphobos fails to build on mips64el-linux-gnu
2022-03-08 8:17 [Bug d/104835] New: [12 Regression] libphobos fails to build on mips64el-linux-gnu doko at gcc dot gnu.org
` (2 preceding siblings ...)
2022-03-09 10:30 ` ibuclaw at gdcproject dot org
@ 2022-03-10 23:56 ` ibuclaw at gdcproject dot org
2022-03-11 0:15 ` ibuclaw at gdcproject dot org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: ibuclaw at gdcproject dot org @ 2022-03-10 23:56 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104835
--- Comment #2 from Iain Buclaw <ibuclaw at gdcproject dot org> ---
The backtrace I get is:
d21: internal compiler error: output_operand: '%l' operand isn't a label
0x1208268cf output_operand_lossage(char const*, ...)
../../gcc/final.cc:3235
0x12082692b output_asm_label(rtx_def*)
../../gcc/final.cc:3638
0x1203d83af
_D3dmd10expression__T10emplaceExpHTCQBiQBh15ArrayLiteralExpTSQCh7globals3LocTCQCy5mtype4TypeTPSQDp4root5array__T5ArrayTCQEoQEn10ExpressionZQBbZQEsFPvQDlQCxQCkZv
/home/ibuclaw/gcc/gcc/d/dmd/expression.d:77
0x1203de093
_D3dmd8ctfeexpr24changeArrayLiteralLengthFKxSQBr7globals3LocCQCh5mtype9TypeArrayCQDb10expression10ExpressionmmZSQEgQBf8UnionExp
../../gcc/d/dmd/ctfeexpr.d:1826
0x12040dcbf
_D3dmd10dinterpret11Interpreter21interpretAssignCommonMFCQCd10expression6BinExpPFKxSQDe7globals3LocCQDu5mtype4TypeCQEjQCg10ExpressionQtZSQFfQDc8UnionExpiZv
../../gcc/d/dmd/dinterpret.d:3678
... (the rest as per the original)
The jump from front-end to final.cc is not in code.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug d/104835] [12 Regression] libphobos fails to build on mips64el-linux-gnu
2022-03-08 8:17 [Bug d/104835] New: [12 Regression] libphobos fails to build on mips64el-linux-gnu doko at gcc dot gnu.org
` (3 preceding siblings ...)
2022-03-10 23:56 ` ibuclaw at gdcproject dot org
@ 2022-03-11 0:15 ` ibuclaw at gdcproject dot org
2022-03-11 15:28 ` ibuclaw at gdcproject dot org
2022-03-13 13:18 ` ibuclaw at gdcproject dot org
6 siblings, 0 replies; 8+ messages in thread
From: ibuclaw at gdcproject dot org @ 2022-03-11 0:15 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104835
--- Comment #3 from Iain Buclaw <ibuclaw at gdcproject dot org> ---
Ends with:
#86 0x0000000120582768 in semantic3(Dsymbol*, Scope*) (sc=<error reading
variable: dwarf2_find_location_expression: Corrupted DWARF expression.>,
dsym=<error reading variable: dwarf2_find_location_expression: Corrupted
DWARF expression.>) at ../../gcc/d/dmd/semantic3.d:1525
#87 Semantic3Visitor::visit(AggregateDeclaration*) (this=0xffffffbab0,
ad=0xfff76c0800) at ../../gcc/d/dmd/semantic3.d:1526
#88 0x000000012057e608 in semantic3(Dsymbol*, Scope*) (sc=<error reading
variable: dwarf2_find_location_expression: Corrupted DWARF expression.>,
dsym=<error reading variable: dwarf2_find_location_expression: Corrupted
DWARF expression.>) at ../../gcc/d/dmd/semantic3.d:193
#89 Semantic3Visitor::visit(Module*) (this=<error reading variable:
dwarf2_find_location_expression: Corrupted DWARF expression.>,
mod=0xfff76b2400) at ../../gcc/d/dmd/semantic3.d:195
#90 Semantic3Visitor::visit(Module*) (this=<optimized out>, mod=0xfff76b2400)
at ../../gcc/d/dmd/semantic3.d:179
#91 0x000000012057eb70 in semantic3(Dsymbol*, Scope*) (dsym=<optimized out>,
sc=<optimized out>) at ../../gcc/d/dmd/semantic3.d:82
#92 0x0000000120634800 in d_parse_file () at ../../gcc/d/d-lang.cc:1244
#93 0x0000000120c16944 in compile_file () at ../../gcc/toplev.cc:452
#94 0x000000012038688c in do_compile (no_backend=false) at
../../gcc/toplev.cc:2168
#95 toplev::main (this=<optimized out>, argc=<error reading variable:
dwarf2_find_location_expression: Corrupted DWARF expression.>,
argv=<error reading variable: dwarf2_find_location_expression: Corrupted
DWARF expression.>) at ../../gcc/toplev.cc:2320
#96 0x0000000120388208 in main (argc=<optimized out>, argv=0xffffffbf98) at
../../gcc/main.cc:39
96 doesn't seem deep enough for it to be a stack overflow, but that's the only
explanation of the cause. The interpret code does have a heavy emphasis on
stack with the UnionExp passed around.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug d/104835] [12 Regression] libphobos fails to build on mips64el-linux-gnu
2022-03-08 8:17 [Bug d/104835] New: [12 Regression] libphobos fails to build on mips64el-linux-gnu doko at gcc dot gnu.org
` (4 preceding siblings ...)
2022-03-11 0:15 ` ibuclaw at gdcproject dot org
@ 2022-03-11 15:28 ` ibuclaw at gdcproject dot org
2022-03-13 13:18 ` ibuclaw at gdcproject dot org
6 siblings, 0 replies; 8+ messages in thread
From: ibuclaw at gdcproject dot org @ 2022-03-11 15:28 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104835
Iain Buclaw <ibuclaw at gdcproject dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://github.com/dlang/dm
| |d/pull/13805
--- Comment #4 from Iain Buclaw <ibuclaw at gdcproject dot org> ---
Raised pull request in upstream dmd.
Why the new version works but the old doesn't is anyone's guess though. It's
the difference between:
---
T tmp = T(args);
__builtin_memcpy(p, (void*)&tmp, sizeof(T));
---
and
---
new(p) T(args);
---
As far as I can tell, both should end up with the same outcome.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug d/104835] [12 Regression] libphobos fails to build on mips64el-linux-gnu
2022-03-08 8:17 [Bug d/104835] New: [12 Regression] libphobos fails to build on mips64el-linux-gnu doko at gcc dot gnu.org
` (5 preceding siblings ...)
2022-03-11 15:28 ` ibuclaw at gdcproject dot org
@ 2022-03-13 13:18 ` ibuclaw at gdcproject dot org
6 siblings, 0 replies; 8+ messages in thread
From: ibuclaw at gdcproject dot org @ 2022-03-13 13:18 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104835
Iain Buclaw <ibuclaw at gdcproject dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED
--- Comment #5 from Iain Buclaw <ibuclaw at gdcproject dot org> ---
Fix committed in r12-7636.
^ permalink raw reply [flat|nested] 8+ messages in thread