[Bug c++/78964] gcc fails to detect pointless increment

2017-01-01 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78964 Markus Trippelsdorf changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/78964] gcc fails to detect pointless increment

2017-01-01 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78964 --- Comment #4 from Markus Trippelsdorf --- And the Linux kernel would not see these warnings anyway: Makefile: 707 # These warnings generated too much noise in a regular build. 708 # Use make W=1 to enable them (see scripts/Makefile.build) 7

[Bug c++/78964] gcc fails to detect pointless increment

2017-01-01 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78964 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #3

[Bug c++/78964] gcc fails to detect pointless increment

2017-01-01 Thread dcb314 at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78964 --- Comment #2 from David Binderman --- >Why should it warn? For all the same reasons as warning -Wunused-but-set-variable. See the following code: extern void g( int); void f( int n) { int m = 0; int m2 = 2; for (int

[Bug c++/78964] gcc fails to detect pointless increment

2017-01-01 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78964 Markus Trippelsdorf changed: What|Removed |Added CC||trippels at gcc dot gnu.org --- Co

[Bug c++/78964] New: gcc fails to detect pointless increment

2017-01-01 Thread dcb314 at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78964 Bug ID: 78964 Summary: gcc fails to detect pointless increment Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug middle-end/78959] FAIL: gcc.c-torture/execute/pr78622.c

2017-01-01 Thread danglin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78959 --- Comment #6 from John David Anglin --- (In reply to Martin Sebor from comment #1) > The test output > > "4105" => 4 > > indicates that on HP-UX the %hhd directive doesn't convert the int argument > (4105) to unsigned char to end up with 9

[Bug middle-end/78959] FAIL: gcc.c-torture/execute/pr78622.c

2017-01-01 Thread dave.anglin at bell dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78959 --- Comment #5 from dave.anglin at bell dot net --- On 2017-01-01, at 4:12 PM, msebor at gcc dot gnu.org wrote: > Or were you saying that prior to HP-UX 11.31 printf didn't have %hhd at all > and > treated it as an ordinary string (or undefined

[Bug ipa/77674] [7 Regression] ICE in binds_to_current_def_p with -fkeep-inline-functions

2017-01-01 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77674 Jan Hubicka changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug ipa/77674] [7 Regression] ICE in binds_to_current_def_p with -fkeep-inline-functions

2017-01-01 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77674 --- Comment #8 from Jan Hubicka --- Author: hubicka Date: Sun Jan 1 23:31:53 2017 New Revision: 243997 URL: https://gcc.gnu.org/viewcvs?rev=243997&root=gcc&view=rev Log: PR middle-end/77674 * symtab.c (symtab_node::binds_to_cur

[Bug fortran/71880] pointer to allocatable character

2017-01-01 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71880 --- Comment #5 from Harald Anlauf --- Maybe the dump-tree gives a hint. Looking at the example program t character(:), dimension(:), allocatable, target :: c character(:), dimension(:), pointer :: p allocate(c(10),source='X') p=>c wri

[Bug middle-end/78959] FAIL: gcc.c-torture/execute/pr78622.c

2017-01-01 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78959 Martin Sebor changed: What|Removed |Added Status|WAITING |ASSIGNED Assignee|unassigned at

[Bug middle-end/78960] FAIL: gcc.dg/tree-ssa/builtin-sprintf.c execution test

2017-01-01 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78960 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|

[Bug target/78938] [7 Regression] ICE in expand_vec_cond_expr, at optabs.c:5636 w/ -mavx512bw -ftree-loop-vectorize -O1

2017-01-01 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78938 Jakub Jelinek changed: What|Removed |Added Priority|P4 |P1 CC|

[Bug middle-end/78959] FAIL: gcc.c-torture/execute/pr78622.c

2017-01-01 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78959 --- Comment #4 from Martin Sebor --- Or were you saying that prior to HP-UX 11.31 printf didn't have %hhd at all and treated it as an ordinary string (or undefined behavior)? If it's the latter the test change alone would probably be sufficient.

[Bug middle-end/78959] FAIL: gcc.c-torture/execute/pr78622.c

2017-01-01 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78959 --- Comment #3 from Martin Sebor --- Okay, thanks. I can add that but shouldn't the pass still correctly handle the pre-C99 HP-UX behavior (i.e., when HAVE_C99_RUNTIME is not defined)? (In case it's not apparent from the test, it fails because

[Bug middle-end/78959] FAIL: gcc.c-torture/execute/pr78622.c

2017-01-01 Thread danglin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78959 --- Comment #2 from John David Anglin --- I think this is a c99 feature and we should add the following to test: /* { dg-require-effective-target c99_runtime } */ It looks as if 11.31 supports the %hhd directive but not earlier versions.

[Bug middle-end/78959] FAIL: gcc.c-torture/execute/pr78622.c

2017-01-01 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78959 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |WAITING Last reconfirmed|

[Bug tree-optimization/78913] Probably misleading error reported by -Wformat-length

2017-01-01 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78913 --- Comment #5 from Martin Sebor --- (In reply to Martin Sebor from comment #4) > 1) use the %.508s directive instead of %s, or > 2) verify the snprintf return value is less than 512. Whoops. An off-by-one error. I meant to follow that by: >

[Bug tree-optimization/78913] Probably misleading error reported by -Wformat-length

2017-01-01 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78913 --- Comment #4 from Martin Sebor --- I'm not sure I do understand exactly what you mean. The warning in this specific case is a false positive. There is no easy way for GCC to avoid it without compromising the checker's efficacy in general. (T

[Bug middle-end/78879] -fprofile-generate causes undefined reference to `____ilog2_NaN'

2017-01-01 Thread law at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78879 Jeffrey A. Law changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug tree-optimization/78961] [7 Regression] FAIL: gcc.dg/tree-ssa/scev-3.c scan-tree-dump-times optimized "&a" 1

2017-01-01 Thread law at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78961 Jeffrey A. Law changed: What|Removed |Added Priority|P3 |P4 CC|

[Bug target/78938] [7 Regression] ICE in expand_vec_cond_expr, at optabs.c:5636 w/ -mavx512bw -ftree-loop-vectorize -O1

2017-01-01 Thread law at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78938 Jeffrey A. Law changed: What|Removed |Added Priority|P3 |P4 CC|

[Bug middle-end/77484] [6/7 Regression] Static branch predictor causes ~6-8% regression of SPEC2000 GAP

2017-01-01 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77484 --- Comment #14 from Jan Hubicka --- Author: hubicka Date: Sun Jan 1 15:40:29 2017 New Revision: 243995 URL: https://gcc.gnu.org/viewcvs?rev=243995&root=gcc&view=rev Log: PR middle-end/77484 * predict.def (PRED_CALL): Update hi

[Bug driver/78957] ICE: SIGSEGV with -fno-sso-struct=web

2017-01-01 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78957 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|

[Bug rtl-optimization/78963] New: Missed optimization opportunity in copies of small unaligned data

2017-01-01 Thread eyalroz at technion dot ac.il
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78963 Bug ID: 78963 Summary: Missed optimization opportunity in copies of small unaligned data Product: gcc Version: 6.3.0 Status: UNCONFIRMED Severity: normal