source:
rtems-tools/tools/4.11/gcc/nios2/nios2-gcc-4.1-rtems-20110818.diff
@
e42bad3
Last change on this file since e42bad3 was e42bad3, checked in by Chris Johns <chrisj@…>, on 03/10/13 at 22:28:55 | |
---|---|
|
|
File size: 6.4 KB |
-
config-ml.in
diff -ruN gcc-4.1.orig/config-ml.in gcc-4.1/config-ml.in
old new 892 892 fi 893 893 fi 894 894 895 if eval ${ml_config_env} ${ml_config_shell} ${ml_recprog} \ 896 --with-multisubdir=${ml_dir} --with-multisrctop=${multisrctop} \ 897 ${ac_configure_args} ${ml_srcdiroption} ; then 898 true 899 else 900 exit 1 901 fi 895 case $(uname) in 896 MINGW32*) 897 # 898 # Work around bugs in MSYS sed or bash. The CC in 899 # ${ac_configure_args} overrides the CC built above 900 # I do not know if the CC should have been stripped 901 # before this script. It seems sed in MSYS does not 902 # handle: 903 # $ echo "'XX=hello' 'YY=world' 'CC=gcc -O3'" | sed -e "s/\'CC=.*\'//g" 904 # 905 tmp_IFS=$IFS 906 IFS="'" 907 tmp__ac_configure_args= 908 for o in ${ac_configure_args} 909 do 910 o=$(echo $o | sed -e 's/ *$//g') 911 case $o in 912 CC=*) ;; 913 '') ;; 914 *) tmp__ac_configure_args="${tmp__ac_configure_args} "\'$o\' ;; 915 esac 916 done 917 IFS=$tmp_IFS 918 919 if eval ${ml_config_env} ${ml_config_shell} ${ml_recprog} \ 920 --with-multisubdir=${ml_dir} --with-multisrctop=${multisrctop} \ 921 ${tmp__ac_configure_args} ${ml_srcdiroption} ; then 922 true 923 else 924 exit 1 925 fi 926 ;; 927 *) 928 if eval ${ml_config_env} ${ml_config_shell} ${ml_recprog} \ 929 --with-multisubdir=${ml_dir} --with-multisrctop=${multisrctop} \ 930 ${ac_configure_args} ${ml_srcdiroption} ; then 931 true 932 else 933 exit 1 934 fi 935 ;; 936 esac 902 937 903 938 cd ${ML_POPDIR} 904 939 -
gcc/DEV-PHASE
diff -ruN gcc-4.1.orig/gcc/DEV-PHASE gcc-4.1/gcc/DEV-PHASE
old new 1 RTEMS (chrisj@rtems.org) NIOS2 gcc-4.1-11.0/newlib-1.19.0 -
gcc/config/nios2/crti.asm
diff -ruN gcc-4.1.orig/gcc/config/nios2/crti.asm gcc-4.1/gcc/config/nios2/crti.asm
old new 67 67 stw r16, 12(sp) 68 68 stw fp, 8(sp) 69 69 addi fp, sp, 8 70 71 #if !defined(__rtems__) 72 /* FIXME: Disabled for now. 73 * Causes undefined refs to _GLOBAL_OFFSET_TABLE_ 74 */ 70 75 nextpc r22 71 76 #ifdef __nios2_6b__ 72 77 1: movhi20 r2, %hi20adj(_GLOBAL_OFFSET_TABLE_ - 1b) … … 76 81 addi r2, r2, %lo(_GLOBAL_OFFSET_TABLE_ - 1b) 77 82 #endif 78 83 add r22, r22, r2 79 84 #endif 80 85 81 86 .section ".fini" 82 87 .align 2 … … 94 99 stw r16, 12(sp) 95 100 stw fp, 8(sp) 96 101 addi fp, sp, 8 102 103 #if !defined(__rtems__) 104 /* FIXME: Disabled for now. 105 * Causes undefined refs to _GLOBAL_OFFSET_TABLE_ 106 */ 97 107 nextpc r22 98 108 #ifdef __nios2_6b__ 99 109 1: movhi20 r2, %hi20adj(_GLOBAL_OFFSET_TABLE_ - 1b) … … 102 112 1: movhi r2, %hiadj(_GLOBAL_OFFSET_TABLE_ - 1b) 103 113 addi r2, r2, %lo(_GLOBAL_OFFSET_TABLE_ - 1b) 104 114 #endif 105 106 115 add r22, r22, r2 107 108 116 #endif -
gcc/config/nios2/nios2-protos.h
diff -ruN gcc-4.1.orig/gcc/config/nios2/nios2-protos.h gcc-4.1/gcc/config/nios2/nios2-protos.h
old new 88 88 extern int nios2_return_in_memory (tree); 89 89 90 90 #endif /* TREE_CODE */ 91 92 rtx nios2_legitimize_address (rtx x, rtx orig_x, enum machine_mode mode); -
gcc/config/nios2/rtems.h
diff -ruN gcc-4.1.orig/gcc/config/nios2/rtems.h gcc-4.1/gcc/config/nios2/rtems.h
old new 1 /* Definitions for rtems targeting a NIOS2 using ELF. 2 Copyright (C) 2011 Free Software Foundation, Inc. 3 Contributed by Chris Johns (chrisj@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 /* Specify predefined symbols in preprocessor. */ 23 24 #define TARGET_OS_CPP_BUILTINS() \ 25 do { \ 26 builtin_define ("__rtems__"); \ 27 builtin_define ("__USE_INIT_FINI__"); \ 28 builtin_assert ("system=rtems"); \ 29 } while (0) -
gcc/config/nios2/t-rtems
diff -ruN gcc-4.1.orig/gcc/config/nios2/t-rtems gcc-4.1/gcc/config/nios2/t-rtems
old new 1 # Multilibs for NIOS2 RTEMS targets. 2 3 # Use all. 4 -
gcc/config.gcc
diff -ruN gcc-4.1.orig/gcc/config.gcc gcc-4.1/gcc/config.gcc
old new 1447 1447 thread_file='posix' 1448 1448 fi 1449 1449 ;; 1450 nios2-*-rtems*) 1451 tm_file=" elfos.h ${tm_file} dbxelf.h nios2/rtems.h rtems.h" 1452 tmake_file="${tmake_file} nios2/t-nios2 t-rtems nios2/t-rtems" 1453 ;; 1450 1454 nios2*-*-*) 1451 1455 tm_file="elfos.h ${tm_file}" 1452 1456 tmake_file="${tmake_file} nios2/t-nios2" -
libiberty/strsignal.c
diff -ruN gcc-4.1.orig/libiberty/strsignal.c gcc-4.1/libiberty/strsignal.c
old new 404 404 405 405 #ifndef HAVE_STRSIGNAL 406 406 407 c onst char *407 char * 408 408 strsignal (int signo) 409 409 { 410 c onst char *msg;410 char *msg; 411 411 static char buf[32]; 412 412 413 413 #ifndef HAVE_SYS_SIGLIST … … 428 428 { 429 429 /* In range, but no sys_siglist or no entry at this index. */ 430 430 sprintf (buf, "Signal %d", signo); 431 msg = (const char *)buf;431 msg = buf; 432 432 } 433 433 else 434 434 { 435 435 /* In range, and a valid message. Just return the message. */ 436 msg = (c onst char *) sys_siglist[signo];436 msg = (char *) sys_siglist[signo]; 437 437 } 438 438 439 439 return (msg); … … 549 549 #ifndef HAVE_PSIGNAL 550 550 551 551 void 552 psignal ( unsigned signo,char *message)552 psignal (int signo, const char *message) 553 553 { 554 554 if (signal_names == NULL) 555 555 {
Note: See TracBrowser
for help on using the repository browser.