]> gcc.gnu.org Git - gcc.git/commitdiff
c-pragma.c (handle_pragma_token): If passed a token instead of a tree, use that as...
authorRobert Lipe <robertl@dgii.com>
Sun, 11 Oct 1998 21:05:04 +0000 (21:05 +0000)
committerRobert Lipe <robertl@gcc.gnu.org>
Sun, 11 Oct 1998 21:05:04 +0000 (21:05 +0000)
        * c-pragma.c (handle_pragma_token): If passed a token instead
        of a tree, use that as the pack value.

From-SVN: r22997

gcc/ChangeLog
gcc/c-pragma.c

index e3aed7d2842ab808076ce1ed3543d4f9cc1bab6e..9422e67286268e18ccaf22988230ffc062556d7a 100644 (file)
@@ -1,3 +1,8 @@
+Sun Oct 11 23:04:30 1998  Robert Lipe  <robertl@dgii.com>
+
+        * c-pragma.c (handle_pragma_token): If passed a token instead
+        of a tree, use that as the pack value.
+
 Sun Oct 11 14:21:14 1998  Mark Mitchell  <mark@markmitchell.com>
 
        * flow.c (find_basic_blocks_1): Fix prototype.
index a28679e6e06edd752134015a24c084ad03d177e4..5856d058b30869edbe00c7a36980c6d504a76821 100644 (file)
@@ -384,7 +384,11 @@ handle_pragma_token (string, token)
       break;
 
     case ps_left:
-      align = atoi (string);
+
+      if (TREE_CODE(token) == INTEGER_CST) 
+       align = TREE_INT_CST_LOW(token);
+      else
+       align = atoi (string);
       switch (align)
        {
        case 1:
This page took 0.059882 seconds and 5 git commands to generate.