public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Tobias Burnus <burnus@net-b.de>
To: Mikael Morin <mikael.morin@sfr.fr>
Cc: fortran@gcc.gnu.org, gcc patches <gcc-patches@gcc.gnu.org>
Subject: Re: [Patch, Fortran] PR 50163 - ICE with nonconst expr in init expr
Date: Wed, 24 Aug 2011 14:23:00 -0000	[thread overview]
Message-ID: <4E54FD25.601@net-b.de> (raw)
In-Reply-To: <201108241212.42494.mikael.morin@sfr.fr>

On 08/24/2011 12:12 PM, Mikael Morin wrote:
> On Tuesday 23 August 2011 14:26:59 Tobias Burnus wrote:
>> OK for the trunk?
> OK.

Thanks for the review! Committed to the 4.7 trunk (Rev. 178038); I will 
backport the patch later. (For cross-readers: That's a patch for a 4.3+ 
ice-on-invalid-code regression.)


> Isn't there some rules about backporting? The way we do it now, it 
> looks completely arbitrary.

I think it *is* arbitrary - and unavoidable so.

The main idea behind regression fixing is to make sure that what once 
worked should continue to work. But what always had been broken can 
remain broken and will be only fixed on the trunk.  Reason: If you fix 
more, the behaviour on the branch changes and you may introduce 
regressions. If thinks are known to be broken, you can simply work 
around them.

Additional ingredients are: How serious is the problem? A wrong-code 
issue occurring in a potentially often used part has a different 
priority than an accepts-invalid or ice-on-invalid-code issue. Also, a 
patch which is huge is less suited than a small "trivial" patch. 
Regressions, which existed for a long time are typically also less 
important - otherwise they would have been fixed or found before.

But there are also other items such as: Which is the last maintained 
version in GCC, which versions are still being used (such that it makes 
sense to backport), and which patches (Linux) distributions want to see. 
Additionally, as backporting takes time (bootstrap, regtesting, and 
maybe even adapting the patch slightly): How much time wants the 
developer spend on backporting.

My impression is that gfortran is currently doing too much 
non-regression backporting, which should be left to serious ICE-on-valid 
code and wrong-code issues. Especially as older versions do not see as 
much testing as the trunk.

On the other hand, backporting simple fixes to regressions or really bad 
wrong-code issues (which we hadn't for a while) down to 4.4 should be 
also fine.

I think every modern (= F2003) developer can relatively simply update to 
4.6 or the trunk. The older versions are mostly for those using the 
default compiler of the system; those typically only need some Fortran 
77/90 compiler, for which the older versions (4.4 or 4.5) should be fine.

But at the end it is question of style. That's similar to Linux 
distributions. I think Jakub/Red Hat ports many patches (bug fixes but 
also features) back to their old versions, while for instance 
Richard/SUSE's package has only few patches and essentially grabs the 
current branch. Both approaches makes sense and either one has 
advantages and disadvantages.

I think we should try extra hard to avoid regressions on the branches 
and mostly concentrate on the trunk, but we can still backport one patch 
or the other to the branches.

I didn't really answer your question, did I?

Tobias

  reply	other threads:[~2011-08-24 13:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-23 14:19 Tobias Burnus
2011-08-24 11:25 ` Mikael Morin
2011-08-24 14:23   ` Tobias Burnus [this message]
2011-08-25 17:42     ` Mikael Morin

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=4E54FD25.601@net-b.de \
    --to=burnus@net-b.de \
    --cc=fortran@gcc.gnu.org \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=mikael.morin@sfr.fr \
    /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).