public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Joseph Myers <joseph@codesourcery.com>
To: Jakub Jelinek <jakub@redhat.com>
Cc: <gcc-patches@gcc.gnu.org>
Subject: Re: [PATCH] testsuite: Fix up c2x-enum-1.c for 32-bit arches [PR107311]
Date: Wed, 19 Oct 2022 16:28:49 +0000	[thread overview]
Message-ID: <alpine.DEB.2.22.394.2210191628400.14960@digraph.polyomino.org.uk> (raw)
In-Reply-To: <Y1AkY7V2xil5Wpub@tucnak>

On Wed, 19 Oct 2022, Jakub Jelinek wrote:

> Hi!
> 
> On Wed, Oct 19, 2022 at 02:57:59PM +0000, Joseph Myers wrote:
> > I think the type checked for e5a should be conditional on __LONG_MAX__ > 
> > __INT_MAX__; everything else there should be OK regardless.
> 
> So like this?
> Tested on x86_64-linux with -m32 and -m64, ok for trunk?
> 
> 2022-10-19  Jakub Jelinek  <jakub@redhat.com>
> 
> 	PR c/107311
> 	* gcc.dg/c2x-enum-1.c (enum e5): Expect e5a type inside of
> 	enum to be int rather than long if long isn't wider than int.

OK.

-- 
Joseph S. Myers
joseph@codesourcery.com

      reply	other threads:[~2022-10-19 16:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-18 14:08 [committed] c: C2x enums wider than int [PR36113] Joseph Myers
2022-10-18 23:55 ` Jakub Jelinek
2022-10-19 14:57   ` Joseph Myers
2022-10-19 16:22     ` [PATCH] testsuite: Fix up c2x-enum-1.c for 32-bit arches [PR107311] Jakub Jelinek
2022-10-19 16:28       ` Joseph Myers [this message]

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.DEB.2.22.394.2210191628400.14960@digraph.polyomino.org.uk \
    --to=joseph@codesourcery.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jakub@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).