public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Richard Biener <richard.guenther@gmail.com>
To: Ulrich Weigand <uweigand@de.ibm.com>
Cc: mliska@suse.cz,gcc-patches@gcc.gnu.org
Subject: Re: Still crashes due to aliasing violation (Re: [RFC, PATCH] Split pool_allocator and create a new object_allocator)
Date: Sat, 18 Jul 2015 13:04:00 -0000	[thread overview]
Message-ID: <6EDDAAC0-1275-45CF-938C-857A1A2AD451@gmail.com> (raw)
In-Reply-To: <20150717212828.870233CC3@oc7340732750.ibm.com>

On July 17, 2015 11:28:28 PM GMT+02:00, Ulrich Weigand <uweigand@de.ibm.com> wrote:
>On July 17, 2015 6:54:32 PM GMT+02:00, Ulrich Weigand
><uweigand@de.ibm.com> wrote:
>> >So do we now consider host compilers < 4.3 (4?) unsupported for
>> >building
>> >mainline GCC, or should we try to work around the issue (e.g. by
>moving
>> >the allocator out-of-line or using some other aliasing barrier)?
>> 
>> Why is this an issue for stage1 which runs w/o optimization?
>
>Well, this is the SPU compiler on a Cell system, which is technically
>a cross compiler from PowerPC (even though the resulting binaries run
>natively on the machine).
>
>> For cross compiling we already suggest using known good compilers.
>
>The documentation says:
>
>  To build a cross compiler, we recommend first building and installing
>  a native compiler. You can then use the native GCC compiler to build
>  the cross compiler. The installed native compiler needs to be GCC
>  version 2.95 or later. 

I think that needs updating anyway since even for crosses we now require a C++04 conforming host compiler.

>So building with a native GCC 4.1 seems to have been officially
>supported until now as far as I can tell (unless you're building Ada).
>
>
>Now, I could certainly live with a statement that cross compilers can
>only be build with a native GCC 4.3 or newer; but that should be IMO
>a deliberate decision and be widely announced (maybe even verified
>by a configure check?), so that others don't run into the problem;
>the nature of its symptoms make the problem difficult to diagnose.

The requirement is to have a bug-free host compiler or use flags that make it appear bug-free.  Which is why we use -O0 when bootstrapping...

Yes, we could detect appropriate host gcc versions at configure time and apply a workaround (use -fno-strict-aliasing) for too old GCC.

Richard.

>
>Bye,
>Ulrich


  reply	other threads:[~2015-07-18  9:13 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-29 14:01 [RFC, PATCH] Split pool_allocator and create a new object_allocator Martin Liška
2015-07-02 20:09 ` Richard Sandiford
2015-07-02 21:08   ` Trevor Saunders
2015-07-03  8:56     ` Richard Sandiford
2015-07-03 10:11       ` Martin Liška
2015-07-03 12:22       ` Martin Jambor
2015-07-03 13:07         ` Richard Sandiford
2015-07-03 14:15           ` Martin Liška
2015-07-03 16:19             ` Richard Sandiford
2015-07-09 21:43               ` Martin Liška
2015-07-10 14:19                 ` Pat Haugen
2015-07-16 11:00                 ` Martin Liška
2015-07-16 11:03                   ` Richard Biener
2015-07-17 13:25                   ` Still crashes due to aliasing violation (Re: [RFC, PATCH] Split pool_allocator and create a new object_allocator) Ulrich Weigand
2015-07-17 13:44                     ` Richard Biener
2015-07-17 13:50                       ` Ulrich Weigand
2015-07-17 13:54                         ` Martin Liška
2015-07-17 15:37                           ` Richard Biener
2015-07-17 17:49                             ` Ulrich Weigand
2015-07-17 18:12                               ` Richard Biener
2015-07-17 21:57                                 ` Ulrich Weigand
2015-07-18 13:04                                   ` Richard Biener [this message]
2015-07-17 18:14                             ` Martin Liška

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=6EDDAAC0-1275-45CF-938C-857A1A2AD451@gmail.com \
    --to=richard.guenther@gmail.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=mliska@suse.cz \
    --cc=uweigand@de.ibm.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).