public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Segher Boessenkool <segher@kernel.crashing.org>
To: Homam Alkhateeb <Homam.Alkhateeb@kopfweb.de>
Cc: "gcc-help@gcc.gnu.org" <gcc-help@gcc.gnu.org>
Subject: Re: Gnu compiler version 4.7.0, dialect -std=c99 with -fshort-enums vs. GHS with --short_enum
Date: Fri, 8 Mar 2024 08:11:25 -0600	[thread overview]
Message-ID: <20240308141125.GT19790@gate.crashing.org> (raw)
In-Reply-To: <040e7afbbd9f4d8c8d7fb8313504da45@kopfweb.de>

On Fri, Mar 08, 2024 at 07:36:17AM +0000, Homam Alkhateeb wrote:
> Is there a way to do this without changing the code?

No.  Your system ABI requires what underlying type to use for an enum.
There would be terrible problems if a compiler could just choose to use
different types willy-nilly!


Segher

  reply	other threads:[~2024-03-08 14:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-07 14:11 Homam Alkhateeb
2024-03-07 14:20 ` Jonathan Wakely
2024-03-08  7:36   ` AW: " Homam Alkhateeb
2024-03-08 14:11     ` Segher Boessenkool [this message]
2024-03-08 14:24       ` Homam Alkhateeb

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=20240308141125.GT19790@gate.crashing.org \
    --to=segher@kernel.crashing.org \
    --cc=Homam.Alkhateeb@kopfweb.de \
    --cc=gcc-help@gcc.gnu.org \
    /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).