https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104822
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The trunk branch has been updated by Andrew Pinski <pins...@gcc.gnu.org>: https://gcc.gnu.org/g:9f33e4c50ee92a2053f52e5eb8f205afa54d4cb0 commit r14-4758-g9f33e4c50ee92a2053f52e5eb8f205afa54d4cb0 Author: Andrew Pinski <pins...@gmail.com> Date: Wed Oct 18 20:49:05 2023 -0700 c: Don't warn about converting NULL to different sso endian [PR104822] In a similar way we don't warn about NULL pointer constant conversion to a different named address we should not warn to a different sso endian either. This adds the simple check. Bootstrapped and tested on x86_64-linux-gnu with no regressions. PR c/104822 gcc/c/ChangeLog: * c-typeck.cc (convert_for_assignment): Check for null pointer before warning about an incompatible scalar storage order. gcc/testsuite/ChangeLog: * gcc.dg/sso-18.c: New test. * gcc.dg/sso-19.c: New test.