public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Richard Earnshaw <rearnsha@arm.com>
To: Mike Stump <mikestump@comcast.net>,
	 "Joseph S. Myers" <joseph@codesourcery.com>
Cc: Andreas Schwab <schwab@suse.de>,
	 David Sherwood <David.Sherwood@arm.com>,
	"gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org>,
	 "vmakarov@redhat.com" <vmakarov@redhat.com>,
	Richard Sandiford <Richard.Sandiford@arm.com>
Subject: Re: Fix for "FAIL: tmpdir-gcc.dg-struct-layout-1/t028 c_compat_x_tst.o compile, (internal compiler error)"
Date: Wed, 01 Oct 2014 08:50:00 -0000	[thread overview]
Message-ID: <542BC055.7010900@arm.com> (raw)
In-Reply-To: <7C2EA902-25FC-426B-A413-712744DA453D@comcast.net>

On 30/09/14 20:33, Mike Stump wrote:
> On Sep 30, 2014, at 9:15 AM, Joseph S. Myers <joseph@codesourcery.com> wrote:
>> On Tue, 30 Sep 2014, Richard Earnshaw wrote:
>>
>>> GCC is written in C++ these days, so technically, you need the C++
>>> standard :-)
>>
>> And, while C++14 requires plain int bit-fields to be signed, GCC is 
>> written in C++98/C++03.
> 
> So, seemingly left unstated in the thread is what is required by the language standard we write in…  From c++98:
> 

Isn't that exactly what I suggested?

"However, since
GCC is supposed to bootstrap using a portable ISO C++ compiler, there's
an argument for removing the ambiguity entirely by being explicit."


>   It is implementa-
>   tion-defined  whether  bit-fields  and objects of char type are repre-
>   sented as signed or unsigned quantities.  The signed specifier  forces
>   char  objects  and bit-fields to be signed; it is redundant with other
>   integral types.
> 
> So, I think you need a signed on bitfields if your want them to be signed.   It doesn’t matter what g++ does, if we want to be portable to any C++ compiler.
> 

R.

  reply	other threads:[~2014-10-01  8:50 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-26 14:26 David Sherwood
2014-09-30  8:05 ` Richard Sandiford
2014-09-30  8:14   ` Andreas Schwab
2014-09-30 11:09     ` Richard Sandiford
2014-09-30 11:51       ` Andreas Schwab
2014-09-30 13:53         ` Richard Earnshaw
2014-09-30 16:15           ` Joseph S. Myers
2014-09-30 19:34             ` Mike Stump
2014-10-01  8:50               ` Richard Earnshaw [this message]
2014-10-01 12:18                 ` Mike Stump
2014-10-01  7:26             ` Andreas Schwab
2014-10-01  7:28               ` David Sherwood
2014-10-03 10:18                 ` Richard Sandiford
  -- strict thread matches above, loose matches on Subject: below --
2014-09-08 11:48 David Sherwood
2014-09-05 14:52 David Sherwood
2014-09-09 20:18 ` Vladimir Makarov

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=542BC055.7010900@arm.com \
    --to=rearnsha@arm.com \
    --cc=David.Sherwood@arm.com \
    --cc=Richard.Sandiford@arm.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=joseph@codesourcery.com \
    --cc=mikestump@comcast.net \
    --cc=schwab@suse.de \
    --cc=vmakarov@redhat.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).