avr-libc-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-libc-commit] [2280] Exclude worses with old GCC versions.


From: Dmitry Xmelkov
Subject: [avr-libc-commit] [2280] Exclude worses with old GCC versions.
Date: Thu, 05 Jan 2012 03:32:39 +0000

Revision: 2280
          http://svn.sv.gnu.org/viewvc/?view=rev&root=avr-libc&revision=2280
Author:   dmix
Date:     2012-01-05 03:32:38 +0000 (Thu, 05 Jan 2012)
Log Message:
-----------
Exclude worses with old GCC versions.
* configure.ac: Insert space after '-o' option (needed for GCC 3.3).
* tests/simulate/runtest.sh: Remove '-std=gnu99' option for assembler sources.

Modified Paths:
--------------
    trunk/avr-libc/ChangeLog
    trunk/avr-libc/configure.ac
    trunk/avr-libc/tests/simulate/runtest.sh

Modified: trunk/avr-libc/ChangeLog
===================================================================
--- trunk/avr-libc/ChangeLog    2012-01-05 03:21:40 UTC (rev 2279)
+++ trunk/avr-libc/ChangeLog    2012-01-05 03:32:38 UTC (rev 2280)
@@ -1,5 +1,12 @@
 2012-01-05  Dmitry Xmelkov  <address@hidden>
 
+       Exclude worses with old GCC versions.
+       * configure.ac: Insert space after '-o' option (needed for GCC 3.3).
+       * tests/simulate/runtest.sh: Remove '-std=gnu99' option for
+       assembler sources.
+
+2012-01-05  Dmitry Xmelkov  <address@hidden>
+
        * include/avr/common.h: Define RAMPZ.
 
 2012-01-03  Joerg Wunsch <address@hidden>

Modified: trunk/avr-libc/configure.ac
===================================================================
--- trunk/avr-libc/configure.ac 2012-01-05 03:21:40 UTC (rev 2279)
+++ trunk/avr-libc/configure.ac 2012-01-05 03:32:38 UTC (rev 2280)
@@ -385,7 +385,7 @@
     AC_MSG_CHECKING(whether ${CC} supports __builtin_avr_delay_cycles)
     echo "extern void __builtin_avr_delay_cycles(unsigned long);\
     int main(void) { __builtin_avr_delay_cycles(42); return 0; }" |\
-    ${CC} -S -xc -o- - |\
+    ${CC} -S -xc -o - - |\
     grep __builtin_avr_delay_cycles >/dev/null
     if test "$?" != "0"
     then

Modified: trunk/avr-libc/tests/simulate/runtest.sh
===================================================================
--- trunk/avr-libc/tests/simulate/runtest.sh    2012-01-05 03:21:40 UTC (rev 
2279)
+++ trunk/avr-libc/tests/simulate/runtest.sh    2012-01-05 03:32:38 UTC (rev 
2280)
@@ -98,7 +98,7 @@
                avr/*.[cS]"}
     
 CPPFLAGS="-Wundef -I."
-CFLAGS="-g -W -Wall -std=gnu99 -pipe -Os"
+CFLAGS="-g -W -Wall -pipe -Os"
 CORE=core_avr_dump.core
 HOST_CC=gcc
 HOST_CFLAGS="-W -Wall -std=gnu99 -pipe -O2 -I."
@@ -211,6 +211,12 @@
        ;;
     esac
 
+    # The GCC 4.1 (and older) does not define __ASSEMBLER__ with
+    # '-std=gnu99' option for *.S sources.
+    case `basename $1` in
+       *.c)    flags="$flags -std=gnu99" ;;
+    esac
+
     $AVR_GCC $CPPFLAGS $CFLAGS $flags -mmcu=$2 -o $3 $crt $1 $libs
 }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]