public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Zopolis0 <creatorsmithmdt@gmail.com>
To: gcc-help@gcc.gnu.org
Subject: gcj fails to compile due to integer mismatch
Date: Mon, 18 Apr 2022 01:28:19 +1000	[thread overview]
Message-ID: <CAEYL+X9WqaP9Fwqpht6oYkaCF1d7RHGYG7hrw2qS9mv5QQrwxA@mail.gmail.com> (raw)

One of the errors stopping gcj from compiling is this:

../.././gcc/java/builtins.cc:352:56: error: no match for ‘operator<=’
(operand types are ‘poly_uint16’ {aka ‘poly_int<1, short unsigned int>’}
and ‘int’)
  352 |                                && GET_MODE_SIZE (mode) <=
UNITS_PER_WORD)))
      |                                   ~~~~~~~~~~~~~~~~~~~~ ^~
      |                                                 |
      |                                                 poly_uint16 {aka
poly_int<1, short unsigned int>}

I think this is due to it not accepting the form of integer, but I have
seen code doing the exact same thing and that works. What is the issue with
this one? How would I fix it?

                 reply	other threads:[~2022-04-17 15:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=CAEYL+X9WqaP9Fwqpht6oYkaCF1d7RHGYG7hrw2qS9mv5QQrwxA@mail.gmail.com \
    --to=creatorsmithmdt@gmail.com \
    --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).