source:
rtems/contrib/crossrpms/patches/gcc-core-4.1.1-rtems4.8-20070201.diff
@
91350690
Last change on this file since 91350690 was 91350690, checked in by Ralf Corsepius <ralf.corsepius@…>, on 02/02/07 at 15:07:55 | |
---|---|
|
|
File size: 8.3 KB |
-
gcc/config/arm/rtems-elf.h
diff -uNr gcc-4.1.1.orig/gcc/config/arm/rtems-elf.h gcc-4.1.1/gcc/config/arm/rtems-elf.h
old new 27 27 #define TARGET_OS_CPP_BUILTINS() \ 28 28 do { \ 29 29 builtin_define ("__rtems__"); \ 30 builtin_define ("__USE_INIT_FINI__"); \ 30 31 builtin_assert ("system=rtems"); \ 31 32 } while (0) 32 33 -
gcc/config/bfin/rtems.h
diff -uNr gcc-4.1.1.orig/gcc/config/bfin/rtems.h gcc-4.1.1/gcc/config/bfin/rtems.h
old new 1 /* Definitions for rtems targeting a bfin 2 Copyright (C) 2006 Free Software Foundation, Inc. 3 Contributed by Ralf Corsépius (ralf.corsepius@rtems.org). 4 5 This file is part of GCC. 6 7 GCC is free software; you can redistribute it and/or modify 8 it under the terms of the GNU General Public License as published by 9 the Free Software Foundation; either version 2, or (at your option) 10 any later version. 11 12 GCC is distributed in the hope that it will be useful, 13 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 GNU General Public License for more details. 16 17 You should have received a copy of the GNU General Public License 18 along with GCC; see the file COPYING. If not, write to 19 the Free Software Foundation, 51 Franklin Street, Fifth Floor, 20 Boston, MA 02110-1301, USA. */ 21 22 /* Target OS preprocessor built-ins. */ 23 #define TARGET_OS_CPP_BUILTINS() \ 24 do \ 25 { \ 26 builtin_define ("__rtems__"); \ 27 builtin_assert ("system=rtems"); \ 28 } \ 29 while (0) -
gcc/config/c4x/rtems.h
diff -uNr gcc-4.1.1.orig/gcc/config/c4x/rtems.h gcc-4.1.1/gcc/config/c4x/rtems.h
old new 24 24 #define TARGET_OS_CPP_BUILTINS() \ 25 25 do { \ 26 26 builtin_define ("__rtems__"); \ 27 builtin_define ("__USE_INIT_FINI__"); \28 27 builtin_assert ("system=rtems"); \ 29 28 } while (0) -
gcc/config/mips/elf.h
diff -uNr gcc-4.1.1.orig/gcc/config/mips/elf.h gcc-4.1.1/gcc/config/mips/elf.h
old new 48 48 49 49 #undef ENDFILE_SPEC 50 50 #define ENDFILE_SPEC "crtend%O%s crtn%O%s" 51 52 #define NO_IMPLICIT_EXTERN_C 1 -
gcc/config/mips/t-rtems
diff -uNr gcc-4.1.1.orig/gcc/config/mips/t-rtems gcc-4.1.1/gcc/config/mips/t-rtems
old new 1 1 # Custom multilibs for RTEMS 2 2 3 MULTILIB_OPTIONS = mips1/mips3/mips32 msoft-float/msingle-float 4 MULTILIB_DIRNAMES = mips1 mips3 mips32 soft-float single 5 MULTILIB_MATCHES = msingle-float=m4650 3 # default is mips1 EB hard-float 4 MULTILIB_OPTIONS = mips1/mips3/mips32 EB/EL msoft-float 5 MULTILIB_DIRNAMES = mips1 mips3 mips32 eb el soft-float 6 MULTILIB_MATCHES = EL=mel EB=meb 7 8 MULTILIB_EXCEPTIONS = 9 10 # Big endian only 11 MULTILIB_EXCEPTIONS += EL* 12 MULTILIB_EXCEPTIONS += mips32/EL* 13 14 # Little endian only 15 MULTILIB_EXCEPTIONS += mips3 16 MULTILIB_EXCEPTIONS += mips3/msoft-float -
gcc/config.gcc
diff -uNr gcc-4.1.1.orig/gcc/config.gcc gcc-4.1.1/gcc/config.gcc
old new 761 761 tmake_file=bfin/t-bfin-elf 762 762 use_collect2=no 763 763 ;; 764 bfin*-rtems*) 765 tm_file="${tm_file} dbxelf.h elfos.h bfin/elf.h bfin/rtems.h rtems.h" 766 tmake_file=bfin/t-bfin-elf 767 use_collect2=no 768 ;; 764 769 bfin*-*) 765 770 tm_file="${tm_file} dbxelf.h elfos.h bfin/elf.h" 766 771 tmake_file=bfin/t-bfin … … 1560 1565 tm_defines="MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64" 1561 1566 use_fixproto=yes 1562 1567 ;; 1563 mips *-*-rtems*)1568 mips-*-rtems*) 1564 1569 tm_file="elfos.h ${tm_file} mips/elf.h mips/rtems.h rtems.h" 1565 1570 tmake_file="mips/t-elf t-rtems mips/t-rtems" 1566 1571 ;; -
gcc/Makefile.in
diff -uNr gcc-4.1.1.orig/gcc/Makefile.in gcc-4.1.1/gcc/Makefile.in
old new 388 388 CROSS_SYSTEM_HEADER_DIR = @CROSS_SYSTEM_HEADER_DIR@ 389 389 390 390 # autoconf sets SYSTEM_HEADER_DIR to one of the above. 391 SYSTEM_HEADER_DIR = @SYSTEM_HEADER_DIR@ 391 # Purge it of unneccessary internal relative paths 392 # to directories that might not exist yet. 393 # The sed idiom for this is to repeat the search-and-replace until it doesn't match, using :a ... ta. 394 SYSTEM_HEADER_DIR = `echo @SYSTEM_HEADER_DIR@ | sed -e :a -e "s,[^/]*/\.\.\/,," -e ta` 392 395 393 396 # Control whether to run fixproto and fixincludes. 394 397 STMP_FIXPROTO = @STMP_FIXPROTO@ … … 2193 2196 $(TREE_GIMPLE_H) $(CGRAPH_H) output.h $(FLAGS_H) tree-pass.h $(DIAGNOSTIC_H) 2194 2197 ipa-pure-const.o : ipa-pure-const.c $(CONFIG_H) $(SYSTEM_H) \ 2195 2198 coretypes.h $(TM_H) $(TREE_H) $(TREE_FLOW_H) tree-inline.h langhooks.h \ 2196 pointer-set.h $(GGC_H) $(IPA_UTILS_H) $(C_COMMON_H) \2199 pointer-set.h $(GGC_H) $(IPA_UTILS_H) $(C_COMMON_H) $(TARGET_H) \ 2197 2200 $(TREE_GIMPLE_H) $(CGRAPH_H) output.h $(FLAGS_H) tree-pass.h $(DIAGNOSTIC_H) 2198 2201 ipa-type-escape.o : ipa-type-escape.c $(CONFIG_H) $(SYSTEM_H) \ 2199 2202 coretypes.h $(TM_H) $(TREE_H) $(TREE_FLOW_H) tree-inline.h langhooks.h \ … … 3146 3149 macro_list: s-macro_list; @true 3147 3150 s-macro_list : $(GCC_PASSES) 3148 3151 echo | $(GCC_FOR_TARGET) -E -dM - | \ 3149 sed -n 's/^#define \([^_][a-zA-Z0-9_]*\).*/\1/p ;\3150 s/^#define \(_[^_A-Z][a-zA-Z0-9_]*\).*/\1/p' | \3152 sed -n -e 's/^#define \([^_][a-zA-Z0-9_]*\).*/\1/p' \ 3153 -e 's/^#define \(_[^_A-Z][a-zA-Z0-9_]*\).*/\1/p' | \ 3151 3154 sort -u > tmp-macro_list 3152 3155 $(SHELL) $(srcdir)/../move-if-change tmp-macro_list macro_list 3153 3156 $(STAMP) s-macro_list … … 3167 3170 ../$(build_subdir)/fixincludes/fixincl: ; @ : 3168 3171 3169 3172 # Build fixed copies of system files. 3173 # Abort if no system headers available, unless building a crosscompiler. 3174 # FIXME: abort unless building --without-headers would be more accurate and less ugly 3170 3175 stmp-fixinc: gsyslimits.h macro_list \ 3171 3176 $(build_objdir)/fixincludes/fixincl \ 3172 3177 $(build_objdir)/fixincludes/fixinc.sh 3173 3178 @if ! $(inhibit_libc) && test ! -d ${SYSTEM_HEADER_DIR}; then \ 3174 3179 echo The directory that should contain system headers does not exist: >&2 ; \ 3175 3180 echo " ${SYSTEM_HEADER_DIR}" >&2 ; \ 3176 if test "x${SYSTEM_HEADER_DIR}" = "x${gcc_tooldir}/sys-include"; \ 3181 tooldir_sysinc=`echo "${gcc_tooldir}/sys-include" | sed -e :a -e "s,[^/]*/\.\.\/,," -e ta`; \ 3182 if test "x${SYSTEM_HEADER_DIR}" = "x${tooldir_sysinc}"; \ 3177 3183 then sleep 1; else exit 1; fi; \ 3178 3184 fi 3179 3185 rm -rf include; mkdir include … … 3616 3622 install-driver: installdirs xgcc$(exeext) 3617 3623 -rm -f $(DESTDIR)$(bindir)/$(GCC_INSTALL_NAME)$(exeext) 3618 3624 -$(INSTALL_PROGRAM) xgcc$(exeext) $(DESTDIR)$(bindir)/$(GCC_INSTALL_NAME)$(exeext) 3619 -rm -f $(DESTDIR)$(bindir)/$(target_noncanonical)-gcc-$(version) 3625 -rm -f $(DESTDIR)$(bindir)/$(target_noncanonical)-gcc-$(version)$(exeext) 3620 3626 -( cd $(DESTDIR)$(bindir) && \ 3621 $(LN) $(GCC_INSTALL_NAME)$(exeext) $(target_noncanonical)-gcc-$(version) )3627 $(LN) $(GCC_INSTALL_NAME)$(exeext) $(target_noncanonical)-gcc-$(version)$(exeext) ) 3622 3628 -if [ -f gcc-cross$(exeext) ] ; then \ 3623 3629 if [ -d $(DESTDIR)$(gcc_tooldir)/bin/. ] ; then \ 3624 3630 rm -f $(DESTDIR)$(gcc_tooldir)/bin/gcc$(exeext); \ -
Makefile.in
diff -uNr gcc-4.1.1.orig/Makefile.in gcc-4.1.1/Makefile.in
old new 329 329 # CFLAGS will be just -g. We want to ensure that TARGET libraries 330 330 # (which we know are built with gcc) are built with optimizations so 331 331 # prepend -O2 when setting CFLAGS_FOR_TARGET. 332 CFLAGS_FOR_TARGET = -O2 $(CFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET)332 CFLAGS_FOR_TARGET = $(strip -O2 $(CFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET)) 333 333 SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFLAGS_FOR_TARGET@ 334 CXXFLAGS_FOR_TARGET = $( CXXFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET)334 CXXFLAGS_FOR_TARGET = $(strip $(CXXFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET)) 335 335 LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET) 336 336 LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates 337 337 LDFLAGS_FOR_TARGET =
Note: See TracBrowser
for help on using the repository browser.