View | Details | Raw Unified | Return to bug 16215
Collapse All | Expand All

(-)a/gcc/config.gcc (+1 lines)
Lines 735-740 case ${target} in Link Here
735
    yes) thread_file='rtems' ;;
735
    yes) thread_file='rtems' ;;
736
  esac
736
  esac
737
  extra_options="${extra_options} rtems.opt"
737
  extra_options="${extra_options} rtems.opt"
738
  extra_objs="rtems.o"
738
  default_use_cxa_atexit=yes
739
  default_use_cxa_atexit=yes
739
  use_gcc_stdint=wrap
740
  use_gcc_stdint=wrap
740
  ;;
741
  ;;
(-)a/gcc/config/arm/rtems-eabi.h (+3 lines)
Lines 27-29 Link Here
27
	builtin_assert ("system=rtems");	\
27
	builtin_assert ("system=rtems");	\
28
	TARGET_BPABI_CPP_BUILTINS();    	\
28
	TARGET_BPABI_CPP_BUILTINS();    	\
29
    } while (0)
29
    } while (0)
30
31
#undef SUBTARGET_OVERRIDE_OPTIONS
32
#define SUBTARGET_OVERRIDE_OPTIONS RTEMS_OVERRIDE_OPTIONS
(-)a/gcc/config/rs6000/rtems.h (+3 lines)
Lines 54-59 Link Here
54
%{mcpu=860:  %{!Dppc*: %{!Dmpc*: -Dmpc860}  } } \
54
%{mcpu=860:  %{!Dppc*: %{!Dmpc*: -Dmpc860}  } } \
55
%{mcpu=8540: %{!Dppc*: %{!Dmpc*: -Dppc8540}  } }" 
55
%{mcpu=8540: %{!Dppc*: %{!Dmpc*: -Dppc8540}  } }" 
56
56
57
#undef SUBSUBTARGET_OVERRIDE_OPTIONS
58
#define SUBSUBTARGET_OVERRIDE_OPTIONS RTEMS_OVERRIDE_OPTIONS
59
57
#undef  SUBSUBTARGET_EXTRA_SPECS
60
#undef  SUBSUBTARGET_EXTRA_SPECS
58
#define SUBSUBTARGET_EXTRA_SPECS \
61
#define SUBSUBTARGET_EXTRA_SPECS \
59
  { "cpp_os_rtems",		CPP_OS_RTEMS_SPEC }
62
  { "cpp_os_rtems",		CPP_OS_RTEMS_SPEC }
(-)a/gcc/config/rtems.c (+37 lines)
Line 0 Link Here
1
/* Common RTEMS target definitions for GNU compiler.
2
   Copyright (C) 2013 Free Software Foundation, Inc.
3
4
This file is part of GCC.
5
6
GCC is free software; you can redistribute it and/or modify it under
7
the terms of the GNU General Public License as published by the Free
8
Software Foundation; either version 3, or (at your option) any later
9
version.
10
11
GCC is distributed in the hope that it will be useful, but WITHOUT ANY
12
WARRANTY; without even the implied warranty of MERCHANTABILITY or
13
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14
for more details.
15
16
You should have received a copy of the GNU General Public License
17
along with GCC; see the file COPYING3.  If not see
18
<http://www.gnu.org/licenses/>.  */
19
20
#include "config.h"
21
#include "system.h"
22
#include "coretypes.h"
23
#include "target.h"
24
#include "tm.h"
25
26
void
27
rtems_override_options (void)
28
{
29
  /* Use strict DWARF-2 unless specifically selected.  This is a
30
     workaround for a lack of tool support.  */
31
32
  if (!global_options_set.x_dwarf_strict)
33
    dwarf_strict = 1;
34
35
  if (!global_options_set.x_dwarf_version)
36
    dwarf_version = 2;
37
}
(-)a/gcc/config/rtems.h (+4 lines)
Lines 43-45 along with GCC; see the file COPYING3. If not see Link Here
43
 -lc -lgcc --end-group %{!qnolinkcmds: -T linkcmds%s}}}"
43
 -lc -lgcc --end-group %{!qnolinkcmds: -T linkcmds%s}}}"
44
44
45
#define TARGET_POSIX_IO
45
#define TARGET_POSIX_IO
46
47
/* Do RTEMS specific parts of TARGET_OPTION_OVERRIDE.  */
48
extern void rtems_override_options (void);
49
#define RTEMS_OVERRIDE_OPTIONS rtems_override_options ()
(-)a/gcc/config/sparc/rtemself.h (+3 lines)
Lines 29-33 along with GCC; see the file COPYING3. If not see Link Here
29
    }						\
29
    }						\
30
  while (0)
30
  while (0)
31
31
32
#undef SUBTARGET_OVERRIDE_OPTIONS
33
#define SUBTARGET_OVERRIDE_OPTIONS RTEMS_OVERRIDE_OPTIONS
34
32
/* Use the default */
35
/* Use the default */
33
#undef LINK_GCC_C_SEQUENCE_SPEC
36
#undef LINK_GCC_C_SEQUENCE_SPEC
(-)a/gcc/config/t-rtems (-1 / +4 lines)
Lines 1-2 Link Here
1
# RTEMS always has limits.h.
1
# RTEMS always has limits.h.
2
LIMITS_H_TEST = true
2
LIMITS_H_TEST = true
3
- 
3
4
rtems.o: $(srcdir)/config/rtems.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
5
	$(TARGET_H) $(TM_H)
6
	$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<

Return to bug 16215