summaryrefslogtreecommitdiff
path: root/gcc/c-pragma.c
diff options
context:
space:
mode:
authorrobertl <robertl@138bc75d-0d04-0410-961f-82ee72b054a4>1998-10-11 21:05:04 +0000
committerrobertl <robertl@138bc75d-0d04-0410-961f-82ee72b054a4>1998-10-11 21:05:04 +0000
commit1000516894775cd24559b62bb997ef1d380b3b53 (patch)
tree8e6145806905efb657be4a9f09cc9706bf227c09 /gcc/c-pragma.c
parentcee8b6aa34c031bd639d38471007a4cd2e8d8e58 (diff)
downloadgcc-1000516894775cd24559b62bb997ef1d380b3b53.tar.gz
* c-pragma.c (handle_pragma_token): If passed a token instead
of a tree, use that as the pack value. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22997 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-pragma.c')
-rw-r--r--gcc/c-pragma.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/c-pragma.c b/gcc/c-pragma.c
index a28679e6e06..5856d058b30 100644
--- a/gcc/c-pragma.c
+++ b/gcc/c-pragma.c
@@ -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: