public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Richard Henderson <rth@redhat.com>
To: Momchil Velikov <velco@fadata.bg>
Cc: Alan Modra <amodra@bigpond.net.au>, gcc@gcc.gnu.org
Subject: Re: Undefined behavior in 950605-1.c
Date: Thu, 25 Jul 2002 13:25:00 -0000	[thread overview]
Message-ID: <20020725105612.A27073@redhat.com> (raw)
In-Reply-To: <873cu83skp.fsf@fadata.bg>; from velco@fadata.bg on Thu, Jul 25, 2002 at 03:22:46PM +0300

On Thu, Jul 25, 2002 at 03:22:46PM +0300, Momchil Velikov wrote:
> Alan> Ah, but what is the promoted type of "unsigned char"?  int!

Except if sizeof(char) == sizeof(int).

> Isn't that the case with architectures
> with a definition of PROMOTE_MODE, which does not change UNSIGNEDP or
> sets it to 1, e.g, ARM, PPC, V850 ?

PROMOTE_MODE has nothing to do with C types.  It's for efficiency
in the generated rtl *only*.  If a strictly conforming program can
notice the existance of PROMOTE_MODE, there is a bug.


r~

  parent reply	other threads:[~2002-07-25 17:56 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-25  7:08 Momchil Velikov
2002-07-25  8:54 ` Andreas Schwab
2002-07-25  9:04   ` Momchil Velikov
     [not found]     ` <20020725102412.GV26054@bubble.sa.bigpond.net.au>
2002-07-25 10:56       ` Momchil Velikov
2002-07-25 11:24         ` Andreas Schwab
2002-07-25 13:25         ` Richard Henderson [this message]
2002-07-26 14:47           ` Richard Earnshaw
2002-07-28  0:08             ` Richard Henderson

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=20020725105612.A27073@redhat.com \
    --to=rth@redhat.com \
    --cc=amodra@bigpond.net.au \
    --cc=gcc@gcc.gnu.org \
    --cc=velco@fadata.bg \
    /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).