https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108283
Bug ID: 108283 Summary: Problem when accessing address zero Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: masmiseim at gmx dot de Target Milestone: --- Created attachment 54187 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54187&action=edit Code for reproduction (same as compiler explorer) Hello gcc comunity, gcc seems to create wrong code when accessing address zero on ARM Targets. Compare this Code Example on Compiler Explorer with gcc trunk: https://godbolt.org/z/Wxncxxo5n On ARM Targets address zero is almost always a normal memory address. Therefore, no special treatment should be done here. Regards Markus