public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Make declaration of wide_int_storage match its definition
@ 2014-07-05 18:43 Gerald Pfeifer
  2014-07-05 19:03 ` pinskia
  2014-07-07 10:51 ` Mike Stump
  0 siblings, 2 replies; 6+ messages in thread
From: Gerald Pfeifer @ 2014-07-05 18:43 UTC (permalink / raw)
  To: gcc-patches; +Cc: Kenneth Zadeck, Mike Stump, Richard Sandiford

Farther below in wide-int.h, we define wide_int_storage as a class:

  class GTY(()) wide_int_storage
  {
  private:
    HOST_WIDE_INT val[WIDE_INT_MAX_ELTS];
    unsigned int len;
    unsigned int precision;
  :

The patch below, which I applied as obvious after a full bootstrap on
i386-unknown-freebsd10.0, makes the declaration match the definition.

Gerald

2014-07-05  Gerald Pfeifer  <gerald@pfeifer.com>

	* wide-int.h (wide_int_storage): Change declaration from struct 
	to class.

Index: wide-int.h
===================================================================
--- wide-int.h	(revision 212304)
+++ wide-int.h	(working copy)
@@ -284,7 +284,7 @@
 
 template <typename T> struct generic_wide_int;
 template <int N> struct fixed_wide_int_storage;
-struct wide_int_storage;
+class wide_int_storage;
 
 /* An N-bit integer.  Until we can use typedef templates, use this instead.  */
 #define FIXED_WIDE_INT(N) \

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-07-07 10:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-05 18:43 Make declaration of wide_int_storage match its definition Gerald Pfeifer
2014-07-05 19:03 ` pinskia
2014-07-05 19:25   ` Gerald Pfeifer
2014-07-05 19:29     ` Jakub Jelinek
2014-07-06 19:39       ` Trevor Saunders
2014-07-07 10:51 ` Mike Stump

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).