diff options
author | Jan Hubicka <jh@suse.cz> | 2003-05-12 21:54:26 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2003-05-12 19:54:26 +0000 |
commit | d3e0dffb76fd85d777f5c5de71f47816121bc5e3 (patch) | |
tree | a8502ad5ff36f59acf8b7f24637d9090abc21d1f | |
parent | 96ef4bdc088490c5e043b5844f79bfb24c624fe0 (diff) | |
download | gcc-d3e0dffb76fd85d777f5c5de71f47816121bc5e3.zip gcc-d3e0dffb76fd85d777f5c5de71f47816121bc5e3.tar.gz gcc-d3e0dffb76fd85d777f5c5de71f47816121bc5e3.tar.bz2 |
* varasm.c (output_constant): Fix underflow.
From-SVN: r66732
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/varasm.c | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0317642..a96f1f0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Mon May 12 21:53:29 CEST 2003 Jan Hubicka <jh@suse.cz> + + * varasm.c (output_constant): Fix underflow. + 2003-05-12 Mark Mitchell <mark@codesourcery.com> PR other/10745 diff --git a/gcc/varasm.c b/gcc/varasm.c index 40191f6..97125f1 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -3913,9 +3913,8 @@ output_constant (exp, size, align) abort (); } - size -= thissize; - if (size > 0) - assemble_zeros (size); + if (size > thissize) + assemble_zeros (size - thissize); } |