diff options
author | Robert Lipe <robertl@dgii.com> | 1998-10-11 21:05:04 +0000 |
---|---|---|
committer | Robert Lipe <robertl@gcc.gnu.org> | 1998-10-11 21:05:04 +0000 |
commit | 7169a0293154a8de0db3b8abff178fe81d169496 (patch) | |
tree | 8e6145806905efb657be4a9f09cc9706bf227c09 /gcc | |
parent | 411e094cbee542f2e94492a72b9d62b8b00aaba2 (diff) | |
download | gcc-7169a0293154a8de0db3b8abff178fe81d169496.zip gcc-7169a0293154a8de0db3b8abff178fe81d169496.tar.gz gcc-7169a0293154a8de0db3b8abff178fe81d169496.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/c-pragma.c | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e3aed7d..9422e67 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/c-pragma.c b/gcc/c-pragma.c index a28679e..5856d05 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: |