public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Gerald Pfeifer <gerald@pfeifer.com>
To: gcc-patches@gcc.gnu.org
Cc: Kenneth Zadeck <zadeck@naturalbridge.com>,
	    Mike Stump <mikestump@comcast.net>,
	    Richard Sandiford <rdsandiford@googlemail.com>
Subject: Make declaration of wide_int_storage match its definition
Date: Sat, 05 Jul 2014 18:43:00 -0000	[thread overview]
Message-ID: <alpine.LSU.2.11.1407052036320.30120@tuna.site> (raw)

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) \

             reply	other threads:[~2014-07-05 18:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-05 18:43 Gerald Pfeifer [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LSU.2.11.1407052036320.30120@tuna.site \
    --to=gerald@pfeifer.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=mikestump@comcast.net \
    --cc=rdsandiford@googlemail.com \
    --cc=zadeck@naturalbridge.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).