* support/regression/tests/structflexarray.c: flexible array members
authorborutr <borutr@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 18 Jun 2006 21:08:05 +0000 (21:08 +0000)
committerborutr <borutr@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 18 Jun 2006 21:08:05 +0000 (21:08 +0000)
  not supported by gcc < 3
* sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
  GUI tool by default
* src/pic/gen.c: don't include [p]strdin.h on solaris
* support/Util/pstdint.h: addad svn attributes

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4240 4a8a32a2-be11-0410-ad9d-d568d2c75423

sim/ucsim/configure
sim/ucsim/configure.in
src/pic/gen.c
support/regression/tests/structflexarray.c

index 48b58e58519d30f6772a4f22409e5ee9bcfad469..4ebd0401af5bcc61b46f3a5a27e6c8d3938c6e32 100755 (executable)
@@ -1649,7 +1649,7 @@ if test "${enable_portmon+set}" = set; then
     enable_serio="yes"
 fi
 else
-  enable_serio="yes"
+  enable_serio="no"
 fi;
 
 
@@ -14241,9 +14241,10 @@ for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   # 1. Remove the extension, and $U if already installed.
   ac_i=`echo "$ac_i" |
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
-  # 2. Add them.
-  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
-  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
+  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
+  #    will be set to the directory where LIBOBJS objects are built.
+  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
+  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 done
 LIBOBJS=$ac_libobjs
 
index 1faa094bc76b06e261e2d1e6f9c5bb3f56050344..172a9634dfc4f81a8ccab631b4d8affe4d87c956 100644 (file)
@@ -82,7 +82,7 @@ AC_ARG_ENABLE(portmon,
 if test $enable_serio != "no"; then
     enable_serio="yes"
 fi,
-enable_serio="yes")
+enable_serio="no")
 AC_SUBST(enable_ucsim)
 AC_SUBST(enable_dlso)
 AC_SUBST(enable_51)
index 18b3be6f68b2ae9b7f2b25893aad30c67f79663e..169fc0f3d620bc2bdb6b5aab1db0acde3dc40e94 100644 (file)
 #include <stdlib.h>
 #include <string.h>
 #include <ctype.h>
+#ifndef __sun__
 #if defined(_MSC_VER)
        #include "pstdint.h"
 #else
        #include <stdint.h>
 #endif
+#endif
 #include "SDCCglobl.h"
 #include "newalloc.h" 
 
index fb991337cb89d23bf8ab39223e0f1c0878addd74..2cfdd9d9ad8a64716116eb1c64ebfe4388f0957b 100644 (file)
@@ -2,7 +2,7 @@
  */
 #include <testfwk.h>
 
-#if !defined __GNUC__ || __GNUC__ > 2
+#if !defined __GNUC__ || __GNUC__ >= 3
 /* flexible array members not supported by gcc < 3 */
 struct str1
 {
@@ -17,7 +17,7 @@ struct str1 s12 = { 4, {5, 6, 7} }; /* different size */
 static void
 testFlexibleArray1(void)
 {
-#if !defined __GNUC__ || __GNUC__ > 2
+#if !defined __GNUC__ || __GNUC__ >= 3
   /* flexible array members not supported by gcc < 3 */
   /* test sizeof */
   ASSERT(sizeof(s11) == 1);
@@ -31,7 +31,7 @@ testFlexibleArray1(void)
 
 /* test initialisation with string */
 
-#if !defined __GNUC__ || __GNUC__ > 2
+#if !defined __GNUC__ || __GNUC__ >= 3
 /* flexible array members not supported by gcc < 3 */
 struct str2
 {
@@ -46,7 +46,7 @@ struct str2 s22 = { 2, "sdcc is great" }; /* different size */
 static void
 testFlexibleArray2(void)
 {
-#if !defined __GNUC__ || __GNUC__ > 2
+#if !defined __GNUC__ || __GNUC__ >= 3
   /* flexible array members not supported by gcc < 3 */
   /* test sizeof */
   ASSERT(sizeof(s21) == 2);