Re: [fpc-devel] duplicate internal error numbers

2020-10-08 Thread Marģers . via fpc-devel
- Reply to message -
Subject: Re: [fpc-devel] duplicate internal error numbers
Date: ceturtd., 8 okt. 2020, 19:39
From:  Sven Barth via fpc-devel 
To:  FPC developers' list 
> Marģers . via fpc-devel  schrieb am Do., 8. 
> Okt. 2020, 12:39:
> > > I would advise against an automated change in case it changes too many
> > > internal error numbers and when a third party raises an issue where the
> > > compiler has triggered one, we can no longer identify where in the code
> > > base that the state has gone bad because none of the numbers match any 
> > > more.

> > It is not that much problem. Most of internal errors would not be triggered 
> > by end users.
> Opened new ticket in bug tracer https://bugs.freepascal.org/view.php?id=37888

> That is kinda the point. They *should* not be triggered, but when they are 
> triggered they should be found. This is 
> especially important as most users are using release versions while we are 
> working on trunk. 

There are 555 internal error numbers changed of 4300+. It's about 13%. What's 
the probability that one of changed number will be triggered until next 
release. One or two in a year (or none). As i see it, it's just decision to 
make to accept or reject  the patch. 
I was curios how much duplicate internal error are there. A lot. Now you know 
that as well.

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


Re: [fpc-devel] duplicate internal error numbers

2020-10-08 Thread Sven Barth via fpc-devel
Marģers . via fpc-devel  schrieb am Do., 8.
Okt. 2020, 12:39:

> > I would advise against an automated change in case it changes too many
> > internal error numbers and when a third party raises an issue where the
> > compiler has triggered one, we can no longer identify where in the code
> > base that the state has gone bad because none of the numbers match any
> more.
>
> It is not that much problem. Most of internal errors would not be
> triggered by end users.
> Opened new ticket in bug tracer
> https://bugs.freepascal.org/view.php?id=37888


That is kinda the point. They *should* not be triggered, but when they are
triggered they should be found. This is especially important as most users
are using release versions while we are working on trunk.

Regards,
Sven
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


Re: [fpc-devel] duplicate internal error numbers

2020-10-08 Thread Marģers . via fpc-devel
- Reply to message -
Subject: Re: [fpc-devel] duplicate internal error numbers
Date: trešd., 7 okt. 2020, 16:40
From:  J. Gareth Moreton via fpc-devel 
To:  

> When two different programmers write code on the same day in different
> parts of the compiler, there's bound to be a clash eventually.  

good example was z80 and xtensa

> I would advise against an automated change in case it changes too many
> internal error numbers and when a third party raises an issue where the
> compiler has triggered one, we can no longer identify where in the code
> base that the state has gone bad because none of the numbers match any more.

It is not that much problem. Most of internal errors would not be triggered by 
end users.
Opened new ticket in bug tracer https://bugs.freepascal.org/view.php?id=37888

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel