Changeset 5fd483f in rtems-testing for gcc


Ignore:
Timestamp:
Jan 28, 2011, 3:59:18 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
fa26552
Parents:
f1698c78
Message:

2011-01-28 Joel Sherrill <joel.sherrill@…>

  • do_one, test_driver, testsuite/ada/acats/Makefile.rtems: Various improvements as part of testing gcc 4.6.0.
Location:
gcc
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • gcc/ChangeLog

    rf1698c78 r5fd483f  
     12011-01-28      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * do_one, test_driver, testsuite/ada/acats/Makefile.rtems: Various
     4        improvements as part of testing gcc 4.6.0.
     5
    162011-01-24      Joel Sherrill <joel.sherrill@oarcorp.com>
    27
  • gcc/do_one

    rf1698c78 r5fd483f  
    149149bsp=${2}
    150150
    151 case ${cpu} in
    152   m32c)
    153     do_ada=no
    154     do_cxx=no
    155     run_acats=no
    156     echo M32C does not support C++ or Ada
    157     ;;
    158   *);;
    159 esac
    160 
     151# Which CPUs do not support C++
     152if [ ${do_cxx} = "yes" ] ; then
     153  case ${cpu} in
     154    avr|h8300|m32c)
     155      do_cxx=no
     156      echo ${cpu} does not support C++
     157      ;;
     158    *);;
     159  esac
     160fi
     161
     162# Which CPUs do not support Ada
     163if [ ${do_ada} = "yes" ] ; then
     164  case ${cpu} in
     165    avr|h8300|m32c)
     166      do_ada=no
     167      run_acats=no
     168      echo ${cpu} does not support Ada
     169      ;;
     170    *);;
     171  esac
     172fi
     173
     174# Which CPUs do not support Go
     175if [ ${do_gccgo} = "yes" ] ; then
     176  case ${cpu} in
     177    avr|h8300|m32c)
     178      do_gccgo=no
     179      echo ${cpu} does not support Go
     180      ;;
     181    *);;
     182  esac
     183fi
     184
     185# When verbose, print settings
    161186if [ ${verbose} = yes ] ; then
    162187  echo "Target        : " ${cpu}
     
    220245TARGET=${cpu}-rtems${RTEMS_VERSION}
    221246
     247# Do we accept an alternate name for the BSP?
    222248if [ x${bsp} = xqemu ] ; then
    223249  BSP_BUILT=pc386
     
    416442  ${GCCDIR}/configure \
    417443    ${NATIVE_GCC_EXTRA_ARGS} \
     444    --disable-werror \
    418445    --enable-languages=c,c++${AdaArg} --prefix=$INSTALL &&
    419446  make ${MAKEJOBS} && make install
     
    466493  ${GCCDIR}/configure \
    467494    ${GCC_EXTRA_ARGS} \
     495    --disable-werror \
    468496   --enable-threads=rtems  --with-gnu-as ${multilib} \
    469497   --enable-newlib-mb --enable-newlib-iconv \
     
    615643   ${GCC_EXTRA_ARGS} \
    616644   --enable-threads=rtems  --with-gnu-as ${ada_multilib} \
    617    --enable-newlib-mb --enable-newlib-iconv \
    618    --with-gnu-ld --with-newlib  --verbose --with-system-zlib --disable-nls \
     645   --with-gnu-ld --disable-newlib  --verbose --with-system-zlib --disable-nls \
    619646    CFLAGS_FOR_TARGET=-B${BSP_INSTALL}/${TARGET}/${BSP_BUILT}/lib/ \
    620647    --enable-version-specific-runtime-libs \
     
    700727   CFLAGS_FOR_TARGET="-B${BSP_INSTALL}/${TARGET}/${BSP_BUILT}/lib/ ${GOFLAGS}" \
    701728     --enable-threads=rtems --with-gnu-as ${gccgo_multilib} \
    702      --enable-newlib-mb --enable-newlib-iconv \
    703      --with-gnu-ld --with-newlib  --verbose --with-system-zlib --disable-nls \
     729     --with-gnu-ld --disable-newlib  --verbose \
     730     --with-system-zlib --disable-nls \
    704731     --enable-version-specific-runtime-libs \
    705732     --with-host-libstdcxx=-static-libstdc++ \
  • gcc/test_driver

    rf1698c78 r5fd483f  
    2929  fi
    3030done
     31
     32if [ x${PPL} != x ] ; then
     33  if [ ! -d ${PPL} ] ; then
     34    echo "Cannot locate ${d} -- aborting"
     35    exit 1
     36  fi
     37fi
    3138
    3239toggle()
     
    102109done
    103110
     111CPUS_PART1="arm  h8300 i386 m32c mips    sh    sparc64"
     112CPUS_PART2="bfin lm32  m32r m68k powerpc sparc avr"
     113ALL_CPUs="${CPUS_PART1} ${CPUS_PART2}"
     114
     115if    [ "X${CPUs}" = "X" ] ; then
     116  CPUs="${ALL_CPUs}"
     117elif [ "X${CPUs}" = "X part1" ] ; then
     118  CPUs="${CPUS_PART1}"
     119elif [ "X${CPUs}" = "X part2" ] ; then
     120  CPUs="${CPUS_PART2}"
     121fi
    104122
    105123if [ ${verbose} = "yes" ] ; then
     
    113131  echo "Email Results:       " ${doMail}
    114132  echo "Run Tests:           " ${doTests}
    115   if [ "X${CPUs}" = "X" ] ; then
    116     echo "CPUs to Build:       " ALL
    117   else
    118     echo "CPUs to Build:       " ${CPUs}
    119   fi
     133  echo "CPUs to Build:       " ${CPUs}
    120134fi
    121135
     
    174188    make all install
    175189  done
     190}
     191
     192install_ppl()
     193{
     194  if [ x${PPL} != x ] ; then
     195    if [ -r ${INSTALL}/lib/libppl.a ] ; then
     196      echo "*** Building PPL ***"
     197      cd ${PPL}
     198      make distclean
     199      ./configure --prefix=${INSTALL}
     200      make all install
     201    fi
     202  fi
    176203}
    177204
     
    222249
    223250    doOne=${SCRIPTDIR}/gcc/do_one
    224     time sh -x ${doOne} -v -b -D -1 -d -r ${gccgoArg} ${adaArg} ${mailArg} ${testArg} \
     251    echo "Building ${cpu}/${bsp}..."
     252    time sh -x ${doOne} -v -b -D -1 -d -r \
     253        ${gccgoArg} ${adaArg} ${mailArg} ${testArg} \
    225254        ${cpu} ${bsp} >${BASEDIR}/${bsp}.log 2>&1
    226255    echo $?
     
    232261}
    233262
    234 update_gcc
    235 
    236263if [ ${doCleanInstallPoint} = "yes" ] ; then
    237264  # Clean the install point
     
    247274    update_others
    248275  fi
     276  if [ ! -r ${INSTALL}/lib/libppl.a ] ; then
     277    install_ppl
     278  fi
    249279wait
    250280
     
    262292# Now cycle over all these CPUs
    263293if [ $? -eq 0 ] ; then
    264   if [ $# -eq 0 ] ; then
    265     # Requires Skyeye install
    266     do_cpus arm
    267 
    268     # no simulator -- waiting for Skyeye
    269     do_cpus bfin
    270 
    271     # Simulators included in gdb
    272     do_cpus h8300 lm32 m32c m32r mips powerpc sh sparc sparc64
    273 
    274     # Requires qemu installation
    275     do_cpus i386 m68k
    276 
    277     # port insufficient to run gcc tests
    278     do_cpus avr
    279   else
    280     for cpu in ${CPUs}
    281     do
    282       do_cpus ${cpu}
    283     done
    284   fi
    285  
     294  for cpu in ${CPUs}
     295  do
     296    do_cpus ${cpu}
     297  done
    286298fi
    287299
  • gcc/testsuite/ada/acats/Makefile.rtems

    rf1698c78 r5fd483f  
    1313GNATMAKE=$(AS:as=gnatmake)
    1414GNATCHOP=$(AS:as=gnatchop)
     15OBJCOPY=$(AS:as=objcopy)
    1516CARGS  = -B${rtemsdir}/lib/ -specs bsp_specs -qrtems
    1617CARGS += $(LDFLAGS) $(AM_LDFLAGS)
     
    6566  endif # qemuppc
    6667  ifeq ($(RTEMS_BSP),uC5282)
    67         echo "  uC5282 -C -l 90 $$"'*' >> $@
     68        echo "  $(OBJCOPY) -O binary $$"'*' "$$"'*'.ralf >>$@
     69        echo "  uC5282 -C -l 90 $$"'*'.ralf >> $@
     70        echo "  rm -f "$$'*'.ralf >>$@
    6871  endif # uC5282
    6972  ifeq ($(RTEMS_BSP),mcf5206elite)
Note: See TracChangeset for help on using the changeset viewer.