From 7169a0293154a8de0db3b8abff178fe81d169496 Mon Sep 17 00:00:00 2001 From: Robert Lipe Date: Sun, 11 Oct 1998 21:05:04 +0000 Subject: [PATCH] c-pragma.c (handle_pragma_token): If passed a token instead of a tree, use that as the pack value. * 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 | 5 +++++ gcc/c-pragma.c | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e3aed7d2842..9422e672862 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Sun Oct 11 23:04:30 1998 Robert Lipe + + * 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 * flow.c (find_basic_blocks_1): Fix prototype. 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: