Browse Source

GCC 4.1.2-tigcc-4:
Fix a 64-bit compatibility problem in the AMS float support, which triggered harmless warnings in the generated assembly code.

git-svn-id: file:///var/svn/tigccpp/trunk@1325 9552661e-59e3-4036-b4f2-dbe53926924f

debrouxl 15 years ago
parent
commit
398da5ce83
2 changed files with 10 additions and 4 deletions
  1. 6 0
      tigcc/gcc/ChangeLog-gcc-4.1.txt
  2. 4 4
      tigcc/gcc/gcc-4.1-tigcc-patch.diff

+ 6 - 0
tigcc/gcc/ChangeLog-gcc-4.1.txt

@@ -1,5 +1,11 @@
 Changelog of the TIGCC-local changes to GCC (4.1 branch):
 
+2009-06-08  Lionel Debroux  <lionel_debroux@yahoo.fr>
+
+        * version.c (VERSUFFIX): Bump to "4.1.2-tigcc-4".
+        * varasm.c: fix a 64-bit compatibility problem in the AMS float support,
+          which triggered harmless warnings in the generated assembly code.
+
 2007-10-08  Kevin Kofler  <Kevin@tigcc.ticalc.org>
 
         PR preprocessor/23479

+ 4 - 4
tigcc/gcc/gcc-4.1-tigcc-patch.diff

@@ -8564,9 +8564,9 @@ diff -Naur gcc-4.1.2.orig/gcc/varasm.c gcc-4.1.2-src/gcc/varasm.c
 +
 +  /* This is how to output a SMAP BCD real constant. */
 +  REAL_VALUE_TO_TARGET_SMAP_BCD (d, data);
-+  assemble_integer (GEN_INT (data[0]), 2, align, 1);
-+  assemble_integer (GEN_INT (data[1]), 4, nalign, 1);
-+  assemble_integer (GEN_INT (data[2]), 4, nalign, 1);
++  assemble_integer (GEN_INT (data[0] & 0xFFFFUL), 2, align, 1);
++  assemble_integer (GEN_INT (data[1] & 0xFFFFFFFFUL), 4, nalign, 1);
++  assemble_integer (GEN_INT (data[2] & 0xFFFFFFFFUL), 4, nalign, 1);
 +
 +#if 0
    int i;
@@ -8753,7 +8753,7 @@ diff -Naur gcc-4.1.2.orig/gcc/version.c gcc-4.1.2-src/gcc/version.c
     the revision of your modified compiler.  */
  
 -#define VERSUFFIX ""
-+#define VERSUFFIX " (TIGCC 4.1.2-tigcc-3)"
++#define VERSUFFIX " (TIGCC 4.1.2-tigcc-4)"
  
  /* This is the location of the online document giving instructions for
     reporting bugs.  If you distribute a modified version of GCC,