public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "slyfox at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/112107] [14 Regression] bootstrap failure on i686-linux: gcc/ira-build.o differs
Date: Fri, 27 Oct 2023 13:43:51 +0000	[thread overview]
Message-ID: <bug-112107-4-CKZCkETeNF@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-112107-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112107

--- Comment #2 from Sergei Trofimovich <slyfox at gcc dot gnu.org> ---
Reduced ira-build.cc down to the following:

// $ cat pp.cc.cc
typedef struct ira_object *ira_object_t;
struct ira_object {
  void *conflicts_array;
  int min, max;
};
void *ira_allocate(int);
int ira_conflict_vector_profitable_p_nbytes;
void ira_conflict_vector_profitable_p(ira_object_t obj) {
  int max(obj->max);
  if (max < obj->min)
    ira_conflict_vector_profitable_p_nbytes = max - obj->min;
}
void ira_allocate_object_conflicts(ira_object_t obj) {
  ira_conflict_vector_profitable_p(obj);
  int size((obj->max - obj->min) * sizeof 0);
  obj->conflicts_array = ira_allocate(size);
}

Reproducer:

# cat trigger.bash
#!/usr/bin/env bash

f() {
    stage3-gcc/xg++ -Bstage3-gcc -nostdinc++  -fno-PIE -g -O2 -fchecking=1
-DIN_GCC    -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -fno-PIE -c
pp.cc.cc -o pp.o -Wall "$@"
    strip --strip-debug pp.o
    sha1sum pp.o
}

[[ "$(f)" == "$(f -gtoggle)" ]] && echo EQUAL || echo DIFF

Running:

$ ./trigger.bash
DIFF

  parent reply	other threads:[~2023-10-27 13:43 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-27 12:38 [Bug bootstrap/112107] New: " slyfox at gcc dot gnu.org
2023-10-27 12:54 ` [Bug bootstrap/112107] " slyfox at gcc dot gnu.org
2023-10-27 13:11 ` rguenth at gcc dot gnu.org
2023-10-27 13:43 ` slyfox at gcc dot gnu.org [this message]
2023-10-27 13:48 ` rguenth at gcc dot gnu.org
2023-10-27 13:58 ` [Bug rtl-optimization/112107] " pinskia at gcc dot gnu.org
2023-10-27 16:32 ` slyfox at gcc dot gnu.org
2023-10-27 16:33 ` slyfox at gcc dot gnu.org
2023-10-27 18:07 ` vmakarov at gcc dot gnu.org
2023-10-27 18:11 ` slyfox at gcc dot gnu.org
2023-10-27 18:54 ` vmakarov at gcc dot gnu.org
2023-10-27 19:12 ` cvs-commit at gcc dot gnu.org
2023-10-27 21:11 ` [Bug rtl-optimization/112107] [14 Regression] bootstrap failure on i686-linux: gcc/ira-build.o differs since r14-4944-gf55cdce3f8dd85 slyfox at gcc dot gnu.org

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=bug-112107-4-CKZCkETeNF@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@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).