]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fri Oct 10 18:54:39 CEST 2003 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
authorHerman A.J. ten Brugge <hermantenbrugge@home.nl>
Fri, 10 Oct 2003 17:04:46 +0000 (19:04 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Fri, 10 Oct 2003 17:04:46 +0000 (17:04 +0000)
* gcov-io.h: Check BITS_PER_UNIT when defining gcov_unsigned_t,
gcov_position_t and gcov_type.

From-SVN: r72301

gcc/ChangeLog
gcc/gcov-io.h

index 0d65cdc549930869a03f946659c8053dd1094096..ffb97d3133c8858b5b4da64d3143ac91ebe677a1 100644 (file)
@@ -1,3 +1,8 @@
+Fri Oct 10 18:54:39 CEST 2003  Herman A.J. ten Brugge <hermantenbrugge@home.nl>
+
+       * gcov-io.h: Check BITS_PER_UNIT when defining gcov_unsigned_t,
+       gcov_position_t and gcov_type.
+
 2003-10-09  Kaz Kojima  <kkojima@gcc.gnu.org>
 
        * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
index e1506baca07b70e679785339416f108a8ba1d6cb..0254632eb8ae895ee54d8b4b517596f972ecc2c3 100644 (file)
@@ -167,6 +167,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 #if IN_LIBGCOV
 /* About the target */
 
+#if BITS_PER_UNIT == 8
 typedef unsigned gcov_unsigned_t __attribute__ ((mode (SI)));
 typedef unsigned gcov_position_t __attribute__ ((mode (SI)));
 #if LONG_LONG_TYPE_SIZE > 32
@@ -174,6 +175,26 @@ typedef signed gcov_type __attribute__ ((mode (DI)));
 #else
 typedef signed gcov_type __attribute__ ((mode (SI)));
 #endif
+#else
+#if BITS_PER_UNIT == 16
+typedef unsigned gcov_unsigned_t __attribute__ ((mode (HI)));
+typedef unsigned gcov_position_t __attribute__ ((mode (HI)));
+#if LONG_LONG_TYPE_SIZE > 32
+typedef signed gcov_type __attribute__ ((mode (SI)));
+#else
+typedef signed gcov_type __attribute__ ((mode (HI)));
+#endif
+#else
+typedef unsigned gcov_unsigned_t __attribute__ ((mode (QI)));
+typedef unsigned gcov_position_t __attribute__ ((mode (QI)));
+#if LONG_LONG_TYPE_SIZE > 32
+typedef signed gcov_type __attribute__ ((mode (HI)));
+#else
+typedef signed gcov_type __attribute__ ((mode (QI)));
+#endif
+#endif
+#endif
+
 
 #if defined (TARGET_HAS_F_SETLKW)
 #define GCOV_LOCKED 1