This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [lto] fix two spec issues


Andreas Schwab wrote:
Nathan Froyd <froydnj@codesourcery.com> writes:

Index: lto/lto-read.c
===================================================================
--- lto/lto-read.c	(revision 131119)
+++ lto/lto-read.c	(working copy)
@@ -266,11 +266,16 @@ input_real (struct input_block *ib, stru
   unsigned int len;
   const char * str;
   REAL_VALUE_TYPE value;
+  static char buffer[1000];

Why is this big enough?

It's for a real written in hex. It's actually even too big: with 113 bits of mantissa, even 40 bytes would suffice (113 / 4 = 28, plus 0 . p + \0 and a handful for the exponent).


Paolo


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]