Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Simon Marchi <simon.marchi@polymtl.ca>
To: Pedro Alves <palves@redhat.com>
Cc: Kevin Buettner <kevinb@redhat.com>,
	gdb-patches@sourceware.org,
	       Joel Brobecker <brobecker@adacore.com>
Subject: Re: GDB 8.2 release 2018-08-21 status update
Date: Fri, 24 Aug 2018 19:15:00 -0000	[thread overview]
Message-ID: <de654842f8b1b186fce915fcc94d4d82@polymtl.ca> (raw)
In-Reply-To: <a93d316e-4d0f-bf42-e5e6-48342a380dc1@redhat.com>

On 2018-08-24 14:35, Pedro Alves wrote:
> On 08/23/2018 11:41 PM, Kevin Buettner wrote:
>> Simon Marchi <simon.marchi@polymtl.ca> wrote:
> 
>>> So from my point of view, it would be fine to include it in 8.2.  I'm
>>> just wondering though why this was considered as a blocker for 8.2 in
>>> the first place.  It's not really a regression, it's more like a new
>>> feature.  Was it to make sure we get the feature to users faster, 
>>> before
>>> the new gcc that emits code like this by default starts to spread too
>>> much?
> 
> Yeah, the main issue here is that nowadays 
> -freorder-blocks-and-partition
> is on by default in GCC (I believe the switch was flipped in GCC 8?), 
> which
> means users will run into this problem more frequently going forward.  
> While
> technically it's not a GDB regression (you can always run into this if 
> you
> build your program with -freorder-blocks-and-partition explicitly), 
> from
> the perspective of end users looking at the toolchain as whole black 
> box,
> it's a toolchain regression (defaults no longer work).
> I'd support putting the series in GDB 8.2.

Seems nobody is against it.  Go!

> Unless I'm wrong that
> -freorder-blocks-and-partition is on by default in GCC 8 already?

Looking at gcc/doc/invoke.texi, apparently it's been enabled for -O2/-O3 
for some time and more recently -Os.  You can check whether it is 
enabled with:

   gcc -Q -v --help 2>/dev/null | grep reorder-blocks-and-partition

I see it as disabled by default and enabled if I add -O2, with different 
gcc versions between 5.4.0 and 8.2.0.  So it doesn't seem to have 
changed recently.  Maybe what changed is that gcc 8 partitions more 
aggressively?  Or it's just that gcc developers tend to debug -O2 
builds?  I have no idea.

Simon


  reply	other threads:[~2018-08-24 19:15 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-21 17:51 Joel Brobecker
2018-08-21 18:33 ` Kevin Buettner
2018-08-21 19:02 ` Simon Marchi
2018-08-21 20:17   ` Simon Marchi
2018-08-21 20:54     ` Joel Brobecker
2018-08-22 16:07       ` Simon Marchi
2018-08-22 17:38         ` Simon Marchi
2018-08-22 18:03         ` Stan Cox
2018-08-22 18:09           ` Simon Marchi
2018-08-21 20:55 ` Joel Brobecker
2018-08-21 21:29   ` Simon Marchi
2018-08-23 17:56     ` Pedro Alves
2018-08-24 18:01       ` Pedro Alves
2018-08-23 18:37 ` Simon Marchi
2018-08-23 22:41   ` Kevin Buettner
2018-08-24 18:35     ` Pedro Alves
2018-08-24 19:15       ` Simon Marchi [this message]
2018-08-24 19:52         ` Pedro Alves
2018-08-24  3:57 ` Kevin Buettner
2018-08-25  5:41   ` Kevin Buettner

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=de654842f8b1b186fce915fcc94d4d82@polymtl.ca \
    --to=simon.marchi@polymtl.ca \
    --cc=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    --cc=kevinb@redhat.com \
    --cc=palves@redhat.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