[committed] Further distinguish between length for warnings vs length for codegen/optimization

2019-01-01 Thread Jeff Law
This is the second behavior changing hunk of Martin's work. In this patch we improve the distinction between maxbound/maxlen in get_range_strlen. This throttles several of the boundry crossing issues with string length range computations by allowing us to distinguish better between a length for

Re: [RFA] fix copyright year range in libstdc++ test file (was: "Re: [v3 PATCH] Implement std::string_view and P0254r2, Integrating std::string_view and std::string.")

2019-01-01 Thread Joel Brobecker
> > In working on updating the copyright year notices for the GDB files, > > I noticed something very minor regarding the patch which added the > > file below (the same file was copied in gdb's testsuite); it looks > > like the year range for one of the files is truncated: > > >

[committed] Fix a couple minor problems with string length range computations

2019-01-01 Thread Jeff Law
So the first of probably 3 patches to fix issues with string length computations now that the underlying infrastructure is in place. Like the prior patches, this is primarily Martin's work. My contribution has been to break it down into more manageable hunks. In this patch we change the

[PATCH,Fortran] Suppress unclassifiable statement error message

2019-01-01 Thread Steve Kargl
Due to the nuances of issuing error messages with ieee_selected_real_kind when used in an initialization expression, it became painfully obvious that gfortran will often issue an "Unclassifiable statement" error as a run-on error. I tried to make the "Unclassifiable ..." error a fatal error, but

[PATCH] ARM: fix -masm-syntax-unified (PR88648)

2019-01-01 Thread Stefan Agner
This allows to use unified asm syntax when compiling for the ARM instruction. This matches documentation and seems what the initial patch was intended doing when the flag got added. --- gcc/config/arm/arm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/config/arm/arm.c

Re: Fix devirtualiation in expanded thunks

2019-01-01 Thread Jan Hubicka
> /vol/gcc/src/hg/trunk/local/gcc/testsuite/g++.dg/tree-prof/devirt.C:99:26: > optimized: folding virtual function call to virtual unsigned int > mozPersonalDictionary::_ZThn8_N21mozPersonalDictionary6AddRefEv() > > > Is there a way to dump files for different patterns for 32bit or 64bit > >

Re: Fix devirtualiation in expanded thunks

2019-01-01 Thread Rainer Orth
Hi Jan, >> Andreas Schwab writes: >> >> > On Dez 31 2018, Martin Liška wrote: >> > >> >> -/* { dg-final-use-not-autofdo { scan-ipa-dump-times 3 "folding virtual >> >> function call to virtual unsigned int mozPersonalDictionary::_ZThn16" >> >> "dom3" } } */ >> >> -/* { dg-final-use-not-autofdo

Re: Fix devirtualiation in expanded thunks

2019-01-01 Thread Jan Hubicka
> Andreas Schwab writes: > > > On Dez 31 2018, Martin Liška wrote: > > > >> -/* { dg-final-use-not-autofdo { scan-ipa-dump-times 3 "folding virtual > >> function call to virtual unsigned int mozPersonalDictionary::_ZThn16" > >> "dom3" } } */ > >> -/* { dg-final-use-not-autofdo {

Re: [RFA] fix copyright year range in libstdc++ test file

2019-01-01 Thread Ed Smith-Rowland
On 1/1/19 12:45 AM, Joel Brobecker wrote: Hello, In working on updating the copyright year notices for the GDB files, I noticed something very minor regarding the patch which added the file below (the same file was copied in gdb's testsuite); it looks like the year range for one of the files is

Bugs fixed in 2018

2019-01-01 Thread Steve Kargl
On Tue, Jan 01, 2019 at 07:42:14PM +0100, Thomas Koenig wrote: > > In 2018, we fixed 333 bugs, an average of 0.91 per day. Not bad at all. > Unfortunately, 468 bugs were submitted in 2018. We need to get new and additional eyes looking at the source. I don't know how we do this as efforts in

Re: [patch, fortran] Fix PR 82743, warning for truncation on constructors

2019-01-01 Thread Steve Kargl
On Tue, Jan 01, 2019 at 07:42:14PM +0100, Thomas Koenig wrote: > > first of all, Happy New Year to everybody! > > In 2018, we fixed 333 bugs, an average of 0.91 per day. Not bad at all. > > Here is a first contribution towards reaching something similar, or even > better, for 2019. It is a

Re: Fix devirtualiation in expanded thunks

2019-01-01 Thread Rainer Orth
Andreas Schwab writes: > On Dez 31 2018, Martin Liška wrote: > >> -/* { dg-final-use-not-autofdo { scan-ipa-dump-times 3 "folding virtual >> function call to virtual unsigned int mozPersonalDictionary::_ZThn16" >> "dom3" } } */ >> -/* { dg-final-use-not-autofdo { scan-ipa-dump-times 3 "folding

[patch, fortran] Fix PR 82743, warning for truncation on constructors

2019-01-01 Thread Thomas Koenig
Hello world, first of all, Happy New Year to everybody! In 2018, we fixed 333 bugs, an average of 0.91 per day. Not bad at all. Here is a first contribution towards reaching something similar, or even better, for 2019. It is a rather straightforward patch which adds a missing warning for

Re: [RFA] fix copyright year range in libstdc++ test file (was: "Re: [v3 PATCH] Implement std::string_view and P0254r2, Integrating std::string_view and std::string.")

2019-01-01 Thread Mike Stump
On Dec 31, 2018, at 9:45 PM, Joel Brobecker wrote: > > In working on updating the copyright year notices for the GDB files, > I noticed something very minor regarding the patch which added the > file below (the same file was copied in gdb's testsuite); it looks > like the year range for one of

[committed] API change for internal get_range_strlen

2019-01-01 Thread Jeff Law
This changes the internal API for get_range_strlen to use c_strlen_data rather than passing in the tree[2] for min/max length plus the tree * for the nonstr object. It also initializes the "maxbound" member within the c_strlen data object. The publicly visible interface to get_range_strlen

Re: Fix devirtualiation in expanded thunks

2019-01-01 Thread Andreas Schwab
On Dez 31 2018, Martin Liška wrote: > -/* { dg-final-use-not-autofdo { scan-ipa-dump-times 3 "folding virtual > function call to virtual unsigned int mozPersonalDictionary::_ZThn16" "dom3" > } } */ > -/* { dg-final-use-not-autofdo { scan-ipa-dump-times 3 "folding virtual > function call to

Re: Fix unresolved tests I introduced into g++.dg/lto

2019-01-01 Thread Jan Hubicka
Hi, this patch does housekeeping for ipa directory. I still plan to port more of the non-LTO testcases into LTO variant (to be sure LTO devirtualization works same way as non-LTO) but will do that after handling bugs and other higher priority tasks. Honza * g++.dg/ipa/devirt-36.C: Add

Fix unresolved tests I introduced into g++.dg/lto

2019-01-01 Thread Jan Hubicka
Hi, this patch fixes the unresolved tests i accidentally introduced to lto directory. I ended up droping the tree scan for now as I do not know how to get that working and both testcases also tests runtime. Honza * g++.dg/lto/devirt-13_0.C: Drop broken scan of ssa dump. *

Fix profiling of thunks

2019-01-01 Thread Jan Hubicka
Hi, this patch fixes second problem demonstrated by testcase Jakub reduced from firefox where we inline agressively into thunks. This is because we have no profile and inliner priorities are not really comparable. I will need to look into that case, but this patch adds the missing profile. This is

[committed] contrib/update-copyright.py --this-year

2019-01-01 Thread Jakub Jelinek
Hi! See r267494 for details, the patch is way too large. I've also rotated a bunch of ChangeLog files. Jakub

[committed] Tweak update-copyright.py

2019-01-01 Thread Jakub Jelinek
Hi! update-copyright.py failed because of unknown copyright holder in one of the libstdc++ files. Fixed thusly, committed as obvious: 2019-01-01 Jakub Jelinek * update-copyright.py: Add Gerard Jungman as external author. --- contrib/update-copyright.py.jj 2018-11-28

[committed] Update copyright years

2019-01-01 Thread Jakub Jelinek
Hi! Happy New Year to everyone! 2019-01-01 Jakub Jelinek * gcc.c (process_command): Update copyright notice dates. * gcov-dump.c (print_version): Ditto. * gcov.c (print_version): Ditto. * gcov-tool.c (print_version): Ditto. * gengtype.c (create_file):