2026-09-08  Joel Sherrill <[email protected]

gcc/
        * config.gcc (microblaze*-*-elf, microblaze*-*-rtems*):
        Include elfos.h to ensure __ELF__ is defined.
---
 gcc/config.gcc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/config.gcc b/gcc/config.gcc
index e600ae272db..e3622f9e6e4 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -2519,7 +2519,7 @@ microblaze*-*-rtems*)
                        ;;
        esac
        tm_file="${tm_file}"
-       tm_file="${tm_file} microblaze/rtems.h rtems.h newlib-stdint.h"
+       tm_file="${tm_file} elfos.h microblaze/rtems.h rtems.h newlib-stdint.h"
        c_target_objs="${c_target_objs} microblaze-c.o"
        cxx_target_objs="${cxx_target_objs} microblaze-c.o"
        tmake_file="${tmake_file} microblaze/t-microblaze"
@@ -2534,7 +2534,7 @@ microblaze*-*-elf)
                        tm_defines="${tm_defines} 
TARGET_BIG_ENDIAN_DEFAULT=4321"
                        ;;
        esac
-       tm_file="${tm_file} newlib-stdint.h"
+       tm_file="${tm_file} elfos.h newlib-stdint.h"
        c_target_objs="${c_target_objs} microblaze-c.o"
        cxx_target_objs="${cxx_target_objs} microblaze-c.o"
        tmake_file="${tmake_file} microblaze/t-microblaze"
-- 
2.52.0

Reply via email to