https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126261
Bug ID: 126261
Summary: XPASS: g++.dg/torture/pr101373.C execution test
Product: gcc
Version: 13.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: azoff at gcc dot gnu.org
Target Milestone: ---
The test case assumes that the process will fail read address 0 in the bar
function.
On embedded, it's not uncommon that address 0 is accessible by the target. On
most of Cortex-M targets, address 0 is actually the initial stack pointer.
This bug is extracted from
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101373#c20
Since there is no clear way to deal with that *((int*)0) may in some cases
cause a segmentation fault and in some other cases, just work like nothing
happened, but with a potential garbage value, I suggest to disable this test
for embedded.