From 479f435805a0f9aaf2d70628ff8860c5fa22d663 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Thu, 25 Oct 2012 18:44:27 +0200 Subject: [PATCH] config.gcc (microblaze*-*-rtems*): New target. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 2012-10-25 Ralf Corsépius * config.gcc (microblaze*-*-rtems*): New target. * config/microblaze/rtems.h: New. * config/microblaze/t-rtems: New. From-SVN: r192815 --- gcc/ChangeLog | 6 ++++++ gcc/config.gcc | 8 ++++++++ gcc/config/microblaze/rtems.h | 25 +++++++++++++++++++++++++ gcc/config/microblaze/t-rtems | 1 + 4 files changed, 40 insertions(+) create mode 100644 gcc/config/microblaze/rtems.h create mode 100644 gcc/config/microblaze/t-rtems diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0dde7f8fb42..b9eeeced9df 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2012-10-25 Ralf Corsépius + + * config.gcc (microblaze*-*-rtems*): New target. + * config/microblaze/rtems.h: New. + * config/microblaze/t-rtems: New. + 2012-10-25 Jan Hubicka PR tree-optimize/54980 diff --git a/gcc/config.gcc b/gcc/config.gcc index 58bbe5451cc..cb67cfc32a7 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1727,6 +1727,14 @@ microblaze*-linux*) c_target_objs="${c_target_objs} microblaze-c.o" cxx_target_objs="${cxx_target_objs} microblaze-c.o" ;; +microblaze*-*-rtems*) + tm_file="${tm_file} dbxelf.h" + tm_file="${tm_file} 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" + tmake_file="${tmake_file} t-rtems microblaze/t-rtems" + ;; microblaze*-*-*) tm_file="${tm_file} dbxelf.h" c_target_objs="${c_target_objs} microblaze-c.o" diff --git a/gcc/config/microblaze/rtems.h b/gcc/config/microblaze/rtems.h new file mode 100644 index 00000000000..fecf7a295d5 --- /dev/null +++ b/gcc/config/microblaze/rtems.h @@ -0,0 +1,25 @@ +/* Definitions for rtems targeting a microblaze using ELF. + Copyright (C) 2012 Free Software Foundation, Inc. + +This file is part of GCC. + +GCC is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 3, or (at your option) +any later version. + +GCC is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GCC; see the file COPYING3. If not see +. */ + +/* Specify predefined symbols in preprocessor. */ + +#define TARGET_OS_CPP_BUILTINS() do { \ + builtin_define( "__rtems__" ); \ + builtin_assert( "system=rtems" ); \ +} while (0) diff --git a/gcc/config/microblaze/t-rtems b/gcc/config/microblaze/t-rtems new file mode 100644 index 00000000000..d0c38261aaa --- /dev/null +++ b/gcc/config/microblaze/t-rtems @@ -0,0 +1 @@ +# Custom multilibs for RTEMS -- 2.30.2