[Bug c++/80956] [7/8 Regression] ICE with abstract class vector

2017-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80956

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2

[Bug fortran/58750] Wrong code with realloc on assignment and array constructors with numeric type conversion

2017-07-25 Thread tkoenig at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58750

Thomas Koenig  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |DUPLICATE

--- Comment #16 from Thomas Koenig  ---
This is indeed a duplicate; the patch at

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52162#c8

fixes an underlying problem which is more general than my patch.

*** This bug has been marked as a duplicate of bug 52162 ***

[Bug fortran/52162] Bogus -fcheck=bounds with realloc on assignment to unallocated LHS

2017-07-25 Thread tkoenig at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52162

--- Comment #11 from Thomas Koenig  ---
*** Bug 58750 has been marked as a duplicate of this bug. ***

[Bug sanitizer/81281] [6/7/8 Regression] UBSAN: false positive, dropped promotion to long type.

2017-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81281

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2

[Bug sanitizer/81275] [5/6/7/8 Regression] -fsanitize=thread produce incorrect -Wreturn-type warning

2017-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81275

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2

[Bug tree-optimization/81455] [7/8 Regression] Compile-time hog w/ -O1 -funswitch-loops

2017-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81455

--- Comment #3 from Richard Biener  ---
Ok, so we end up running in circles in find_loop_guard

  gcond *cond;
  do
{
  if (single_succ_p (header))
header = single_succ (header);
  else
{
  cond = dyn_cast  (last_stmt (header));
  if (! cond)
return NULL;
  extract_true_false_edges_from_block (header, , );
  /* Make sure to skip earlier hoisted guards that are left
 in place as if (true).  */
  if (gimple_cond_true_p (cond))
header = te->dest;
  else if (gimple_cond_false_p (cond))
header = fe->dest;
  else
break;
}
}
  while (1);

for

   [85.00%] [count: INV] [loop 3 header]:
  if (1 != 0)
goto ; [85.00%] [count: INV]
  else
goto ; [15.00%] [count: INV]

   [12.75%] [count: INV]:
  goto ; [100.00%] [count: INV]

   [72.25%] [count: INV] [loop 3 latch]:
  goto ; [100.00%] [count: INV]

where we walk a latch.  We never should do that.

[Bug tree-optimization/81510] [8 Regression] ice in operator[], at vec.h:749

2017-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81510

Richard Biener  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #6 from Richard Biener  ---
Fixed.

[Bug target/79793] Incorrect stack alignment for interrupt handler in 64-bit

2017-07-25 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79793

--- Comment #9 from Uroš Bizjak  ---
Created attachment 41826
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41826=edit
Adjust INCOMING_FRAME_SP_OFFSET for TYPE_EXCEPTION functions

How about something like attached patch? The patch adjusts
INCOMING_FRAME_SP_OFFSET of an exception handler to 2 * UNITS_PER_WORD.

The resulting code reads:

.cfi_startproc
subq$392, %rsp
.cfi_def_cfa_offset 400
fxsave64-120(%rsp)
addq$400, %rsp
.cfi_def_cfa_offset 0
iretq
.cfi_endproc

Patch is otherwise untested. Probably, function argument parsing code has to be
adjusted as well. I'm also not sure if all .cfi directives are correct.

[Bug target/79793] Incorrect stack alignment for interrupt handler in 64-bit

2017-07-25 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79793

--- Comment #12 from H.J. Lu  ---
Created attachment 41828
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41828=edit
An updated patch

Update gcc.dg/guality/pr68037-1.c.  I got

FAIL: gcc.dg/guality/pr68037-1.c   -O2 -flto -fuse-linker-plugin
-fno-fat-lto-objects  line 33 error == 0x12345670
FAIL: gcc.dg/guality/pr68037-1.c   -O2 -flto -fuse-linker-plugin
-fno-fat-lto-objects  line 33 frame->ip == 0x12345671
FAIL: gcc.dg/guality/pr68037-1.c   -O2 -flto -fuse-linker-plugin
-fno-fat-lto-objects  line 33 frame->cs == 0x12345672
FAIL: gcc.dg/guality/pr68037-1.c   -O2 -flto -fuse-linker-plugin
-fno-fat-lto-objects  line 33 frame->flags == 0x12345673
FAIL: gcc.dg/guality/pr68037-1.c   -O2 -flto -fuse-linker-plugin
-fno-fat-lto-objects  line 33 frame->sp == 0x12345674
FAIL: gcc.dg/guality/pr68037-1.c   -O2 -flto -fuse-linker-plugin
-fno-fat-lto-objects  line 33 frame->ss == 0x12345675

and

Running target unix/-m32
Using /usr/share/dejagnu/baseboards/unix.exp as board description file for
target.
Using /usr/share/dejagnu/config/unix.exp as generic interface file for target.
Using /export/gnu/import/git/sources/gcc/gcc/testsuite/config/default.exp as
tool-and-target-specific interface file.
Running
/export/gnu/import/git/sources/gcc/gcc/testsuite/gcc.target/i386/i386.exp ...
FAIL: gcc.target/i386/interrupt-12.c scan-assembler-times movl[\\t
]*-4\\(%ebp\\),[\\t ]*%eax 1
FAIL: gcc.target/i386/interrupt-13.c scan-assembler-times movl[\\t
]*-4\\(%ebp\\),[\\t ]*%eax 1
FAIL: gcc.target/i386/interrupt-15.c scan-assembler-times movl[\\t
]*-4\\(%ebp\\),[\\t ]*%eax 2

=== gcc Summary for unix/-m32 ===

# of expected passes211
# of unexpected failures3
# of unsupported tests  2

[Bug tree-optimization/81540] tree-switch-conversion leads to code bloat

2017-07-25 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81540

Georg-Johann Lay  changed:

   What|Removed |Added

 Target|avr |avr,x86_64

--- Comment #2 from Georg-Johann Lay  ---
Similar on x86_64:

$ gcc-8 cswtch.c -Os -c && size -A cswtch.o
cswtch.o  :
section   size   addr
.text   20  0
.rodata200  0

[snipped irrelevant sections]

$ gcc-8 cswtch.c -Os -c -fno-tree-switch-conversion && size -A cswtch.o
cswtch.o  :
section   size   addr
.text   35  0


So it grows by a factor of > 5 there.

[Bug c++/62207] [5/6/7/8 Regression] ICE: tree check: expected tree that contains 'decl minimal' structure, have 'overload' in tsubst_copy, at cp/pt.c

2017-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62207

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P4

[Bug c++/79650] [5/6/7/8 Regression] ICE on invalid c++ code with label arithmetic in convert_nontype_argument (pt.c:6515)

2017-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79650

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2

[Bug fortran/80657] [7/8 Regression] Loop in character function declaration

2017-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80657

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P4

[Bug c++/80559] [7/8 Regression] Segmentation fault on invalid initialiser list template arguments

2017-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80559

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P4

[Bug tree-optimization/81427] Bad optimization for fibonacci function on PowerPC

2017-07-25 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81427

Segher Boessenkool  changed:

   What|Removed |Added

 CC||segher at gcc dot gnu.org

--- Comment #1 from Segher Boessenkool  ---
The function is longer, yes, but that is because it is inline into itself
eight times (or doubled once again?)

This is quite aggressive, yes.  But is it actually slower?  Inlining
almost always makes code bigger, but also faster.

You can play with the various inlining --param's to see what would be
a better tradeoff here.

[Bug rtl-optimization/75964] insn combiner removes comparison after ABS

2017-07-25 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=75964

--- Comment #8 from Georg-Johann Lay  ---
Author: gjl
Date: Tue Jul 25 11:39:23 2017
New Revision: 250509

URL: https://gcc.gnu.org/viewcvs?rev=250509=gcc=rev
Log:
gcc/
Backport from 2017-05-06 trunk r247719.
PR rtl-optimization/75964
* simplify-rtx.c (simplify_const_relational_operation): Remove
invalid handling of comparisons of integer ABS.
gcc/testsuite/
Backport from 2017-05-06 trunk r247719.
PR rtl-optimization/75964
* gcc.dg/torture/pr75964.c: New test.

Added:
branches/gcc-7-branch/gcc/testsuite/gcc.dg/torture/pr75964.c
Modified:
branches/gcc-7-branch/gcc/ChangeLog
branches/gcc-7-branch/gcc/simplify-rtx.c
branches/gcc-7-branch/gcc/testsuite/ChangeLog

[Bug target/79793] Incorrect stack alignment for interrupt handler in 64-bit

2017-07-25 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79793

--- Comment #11 from H.J. Lu  ---
(In reply to Uroš Bizjak from comment #9)
> Created attachment 41826 [details]
> Adjust INCOMING_FRAME_SP_OFFSET for TYPE_EXCEPTION functions
> 
> How about something like attached patch? The patch adjusts
> INCOMING_FRAME_SP_OFFSET of an exception handler to 2 * UNITS_PER_WORD.
> 
> The resulting code reads:
> 
> .cfi_startproc
> subq$392, %rsp
> .cfi_def_cfa_offset 400
> fxsave64-120(%rsp)
> addq$400, %rsp
> .cfi_def_cfa_offset 0
> iretq
> .cfi_endproc
> 
> Patch is otherwise untested. Probably, function argument parsing code has to
> be adjusted as well. I'm also not sure if all .cfi directives are correct.

Our patches are very similar.  Mine passed most of interrupt tests.

[Bug rtl-optimization/75964] insn combiner removes comparison after ABS

2017-07-25 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=75964

Georg-Johann Lay  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
  Known to work||6.4.1, 7.1.1
 Resolution|--- |FIXED

--- Comment #10 from Georg-Johann Lay  ---
Fixed in v7.2 + v6.5.

[Bug tree-optimization/81388] [7/8 Regression] Incorrect code generation with -O1

2017-07-25 Thread amker at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81388

--- Comment #10 from amker at gcc dot gnu.org ---
Author: amker
Date: Tue Jul 25 08:56:26 2017
New Revision: 250497

URL: https://gcc.gnu.org/viewcvs?rev=250497=gcc=rev
Log:
Backport from 2017-07-20 trunk r250384.

PR tree-optimization/81388
Revert r238585:
2016-07-21  Bin Cheng  

* tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
by removing computation of may_be_zero.

gcc/testsuite
PR tree-optimization/81388
* gcc.dg/tree-ssa/pr81388-1.c: New test.
* gcc.dg/tree-ssa/pr81388-2.c: New test.

Added:
branches/gcc-7-branch/gcc/testsuite/gcc.dg/tree-ssa/pr81388-1.c
branches/gcc-7-branch/gcc/testsuite/gcc.dg/tree-ssa/pr81388-2.c
Modified:
branches/gcc-7-branch/gcc/ChangeLog
branches/gcc-7-branch/gcc/testsuite/ChangeLog
branches/gcc-7-branch/gcc/tree-ssa-loop-niter.c

[Bug tree-optimization/81540] tree-switch-conversion leads to code bloat

2017-07-25 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81540

--- Comment #4 from Georg-Johann Lay  ---
(In reply to Jakub Jelinek from comment #3)
> Estimating the size for non-switch converted switches is going to be really
> hard.

The point is that with -fno-tree-switch-conversion there is no switch at all. 
As the switch is sparse, just a few comparisons or conditional loads can handle
it.

> Anyway, isn't -Os about code size (which is shorter when switch converted)
> rather than total size of all sections?

Well, .rodata is something that has to be allocated just like .text.  It's not
executable, but it consumes target memory.

If you'd replace computation of sin() by an insanely big lookup-table and
advertise it as "code size shrunk", users still won't like it ;-)

[Bug tree-optimization/80726] [7/8 Regression] Destructor not inlined anymore (regression)

2017-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80726

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2
 CC||hubicka at gcc dot gnu.org

--- Comment #2 from Richard Biener  ---
Question for Honza really.

[Bug c/80778] [7/8 Regression] gcc.dg/auto-type-1.c ICEs with -flto

2017-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80778

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2

[Bug lto/81487] [mingw32] ld.exe: error: asprintf failed

2017-07-25 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81487

--- Comment #3 from Georg-Johann Lay  ---
Author: gjl
Date: Tue Jul 25 09:59:44 2017
New Revision: 250499

URL: https://gcc.gnu.org/viewcvs?rev=250499=gcc=rev
Log:
gcc/
PR 81487
* hsa-brig.c (brig_init): Use xasprintf instead of asprintf.
* gimple-pretty-print.c (dump_profile, dump_probability): Same.
* tree-ssa-structalias.c (alias_get_name): Same.

Modified:
trunk/gcc/ChangeLog
trunk/gcc/gimple-pretty-print.c
trunk/gcc/hsa-brig.c
trunk/gcc/tree-ssa-structalias.c

[Bug sanitizer/81212] [6/7/8 Regression] -Wreturn-type is disabled when used together with -fsanitize=return

2017-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81212

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2

[Bug tree-optimization/81181] [7/8 Regression] ICE in compute_antic, at tree-ssa-pre.c:2410

2017-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81181

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2

[Bug middle-end/81207] [7/8 Regression] tree check fail in simplify_builtin_call

2017-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81207

Richard Biener  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #7 from Richard Biener  ---
Fixed.

[Bug tree-optimization/81226] [6/7/8 Regression] Graphite ICE in outer_projection_mupa, at graphite-sese-to-poly.c:1019

2017-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81226

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P4
 Blocks||59859


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59859
[Bug 59859] [meta-bug] GRAPHITE issues

[Bug target/81228] [7/8 Regression] ICE in gen_vec_cmpv2dfv2di, at config/aarch64/aarch64-simd.md:2508

2017-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81228

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2

[Bug tree-optimization/81510] [8 Regression] ice in operator[], at vec.h:749

2017-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81510

--- Comment #7 from Richard Biener  ---
Author: rguenth
Date: Tue Jul 25 11:02:32 2017
New Revision: 250504

URL: https://gcc.gnu.org/viewcvs?rev=250504=gcc=rev
Log:
2017-07-25  Richard Biener  

PR tree-optimization/81510
* tree-vect-loop.c (vect_is_simple_reduction): When the
reduction stmt is not inside the loop bail out.

* gcc.dg/torture/pr81510.c: New testcase.
* gcc.dg/torture/pr81510-2.c: Likewise.

Added:
trunk/gcc/testsuite/gcc.dg/torture/pr81510-2.c
trunk/gcc/testsuite/gcc.dg/torture/pr81510.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-vect-loop.c

[Bug rtl-optimization/75964] insn combiner removes comparison after ABS

2017-07-25 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=75964

--- Comment #9 from Georg-Johann Lay  ---
Author: gjl
Date: Tue Jul 25 11:55:44 2017
New Revision: 250511

URL: https://gcc.gnu.org/viewcvs?rev=250511=gcc=rev
Log:
gcc/
Backport from 2017-05-06 trunk r247719.
PR rtl-optimization/75964
* simplify-rtx.c (simplify_const_relational_operation): Remove
invalid handling of comparisons of integer ABS.
gcc/testsuite/
Backport from 2017-05-06 trunk r247719.
PR rtl-optimization/75964
* gcc.dg/torture/pr75964.c: New test.

Added:
branches/gcc-6-branch/gcc/testsuite/gcc.dg/torture/pr75964.c
Modified:
branches/gcc-6-branch/gcc/ChangeLog
branches/gcc-6-branch/gcc/simplify-rtx.c
branches/gcc-6-branch/gcc/testsuite/ChangeLog

[Bug target/79041] aarch64 backend emits R_AARCH64_ADR_PREL_PG_HI21 relocation despite -mpc-relative-literal-loads option being used

2017-07-25 Thread wilco at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79041

--- Comment #8 from Wilco  ---
Author: wilco
Date: Tue Jul 25 12:08:59 2017
New Revision: 250514

URL: https://gcc.gnu.org/viewcvs?rev=250514=gcc=rev
Log:
Fix PR79041

As described in PR79041, -mcmodel=large -mpc-relative-literal-loads
may be used to avoid generating ADRP/ADD or ADRP/LDR.  However both
trunk and GCC7 may still emit ADRP for some constant pool literals.
Fix this by adding a aarch64_pcrelative_literal_loads check.

gcc/
PR target/79041
* config/aarch64/aarch64.c (aarch64_classify_symbol):
Avoid SYMBOL_SMALL_ABSOLUTE for literals with pc-relative literals.
gcc/testsuite/
* gcc.target/aarch64/pr79041-2.c: New test.

Added:
branches/gcc-7-branch/gcc/testsuite/gcc.target/aarch64/pr79041-2.c
Modified:
branches/gcc-7-branch/gcc/ChangeLog
branches/gcc-7-branch/gcc/config/aarch64/aarch64.c
branches/gcc-7-branch/gcc/testsuite/ChangeLog

[Bug tree-optimization/81510] [8 Regression] ice in operator[], at vec.h:749

2017-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81510

--- Comment #5 from Richard Biener  ---
*** Bug 81537 has been marked as a duplicate of this bug. ***

[Bug tree-optimization/81537] [8 Regression] ice in vect_is_simple_reduction

2017-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81537

Richard Biener  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |DUPLICATE

--- Comment #2 from Richard Biener  ---
Dup.

*** This bug has been marked as a duplicate of bug 81510 ***

[Bug tree-optimization/81388] [7/8 Regression] Incorrect code generation with -O1

2017-07-25 Thread amker at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81388

--- Comment #11 from amker at gcc dot gnu.org ---
Backport to gcc-7-branch with test cases slightly adjusted.

[Bug tree-optimization/81529] [8 Regression] ICE in vectorizable_induction, at tree-vect-loop.c:6613

2017-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81529

--- Comment #2 from Richard Biener  ---
Ok, so we have an induction that's only used outside of the loop (well,
-fno-tree-scev-cprop ...) and this causes the VF to be reset to 1 as the
induction
computation is vect_unused_in_scope (should be used_by_induction I guess).
Caused by another change of mine I think.

Testing patch.

[Bug middle-end/80929] [7/8 Regression] Division with constant no more optimized to mult highpart

2017-07-25 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80929

--- Comment #5 from Georg-Johann Lay  ---
(In reply to Richard Biener from comment #4)
> Fixed?

Not sure; the middle-end (rtlanal.c::insn_rtx_cost, seq_cost) are still
bypassing PARALLELs with more than 1 SET, i.e. assume cost of 1.

[Bug rtl-optimization/75964] insn combiner removes comparison after ABS

2017-07-25 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=75964

Georg-Johann Lay  changed:

   What|Removed |Added

   Target Milestone|--- |7.2

[Bug go/81548] New: "make distclean" does not clean all of gotools/

2017-07-25 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81548

Bug ID: 81548
   Summary: "make distclean" does not clean all of gotools/
   Product: gcc
   Version: 8.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: go
  Assignee: ian at airs dot com
  Reporter: segher at gcc dot gnu.org
CC: cmang at google dot com
  Target Milestone: ---

"make distclean" does not rmdir gotools because the files
gotools.log.sent, gotools.sum.sent are still there (after having
run contrib/test_summary first).

[Bug c/81364] Bogus -Wmultistatement-macros warning

2017-07-25 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81364

--- Comment #3 from Marek Polacek  ---
Author: mpolacek
Date: Tue Jul 25 09:49:08 2017
New Revision: 250498

URL: https://gcc.gnu.org/viewcvs?rev=250498=gcc=rev
Log:
PR c/81364
* c-parser.c (c_parser_else_body): Don't warn about multistatement
macro expansion if the body is in { }.
(c_parser_while_statement): Likewise.
(c_parser_for_statement): Likewise.

* Wmultistatement-macros-12.c: New test.

Added:
trunk/gcc/testsuite/c-c++-common/Wmultistatement-macros-12.c
Modified:
trunk/gcc/c/ChangeLog
trunk/gcc/c/c-parser.c
trunk/gcc/testsuite/ChangeLog

[Bug c/81364] Bogus -Wmultistatement-macros warning

2017-07-25 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81364

Marek Polacek  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #4 from Marek Polacek  ---
Fixed.

[Bug c++/81073] [5/6/7/8 Regression] link failure as C++ misses to instantiate some objects

2017-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81073

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|--- |5.5

[Bug c++/62207] [5/6/7/8 Regression] ICE: tree check: expected tree that contains 'decl minimal' structure, have 'overload' in tsubst_copy, at cp/pt.c

2017-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62207

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|--- |5.5

[Bug middle-end/80929] [7/8 Regression] Division with constant no more optimized to mult highpart

2017-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80929

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|--- |7.2

[Bug c++/79650] [5/6/7/8 Regression] ICE on invalid c++ code with label arithmetic in convert_nontype_argument (pt.c:6515)

2017-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79650

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|--- |5.5

[Bug testsuite/81056] [7/8 Regression] FAIL: 17_intro/names.cc (test for excess errors)

2017-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81056

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P4
  Component|libstdc++   |testsuite

[Bug target/81414] [6/7/8 Regression] ICE in fma steering on AArch64/cortex-a57

2017-07-25 Thread amker at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81414

--- Comment #2 from amker at gcc dot gnu.org ---
Author: amker
Date: Tue Jul 25 08:31:22 2017
New Revision: 250496

URL: https://gcc.gnu.org/viewcvs?rev=250496=gcc=rev
Log:
PR target/81414
* config/aarch64/cortex-a57-fma-steering.c (analyze): Skip fmul/fmac
instructions if no du chain is found.

gcc/testsuite
* gcc.target/aarch64/pr81414.C: New.

Added:
trunk/gcc/testsuite/gcc.target/aarch64/pr81414.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/aarch64/cortex-a57-fma-steering.c
trunk/gcc/testsuite/ChangeLog

[Bug tree-optimization/65068] Improve rewriting for address type induction variables in IVOPT

2017-07-25 Thread ramana at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65068

--- Comment #5 from Ramana Radhakrishnan  ---
(In reply to amker from comment #4)
> Fixed now, we now generates below code for a72/a57:
> .L4:
>   ldr w0, [x1]
>   add w0, w0, 1
>   str w0, [x1], 4
>   cmp x1, x2
>   bne .L4
> 
> 
> The original issue reported is that loop invariant expression is split thus
> can't be hoisted out of loop.  I think comment 3 is a different issue. 
> Closing this one.

Would you know what fixed this just for the audit trail ? 

Ramana

[Bug target/80236] ARM NEON: Crash in std::map

2017-07-25 Thread ramana at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80236

--- Comment #20 from Ramana Radhakrishnan  ---
(In reply to Dominik Schmidt from comment #18)
> Created attachment 41803 [details]
> Patch working for us
> 
> Indeed, it seems to be a duplicate of the other bug.

That is good news - thank you for following up.


Ramana

[Bug tree-optimization/81540] tree-switch-conversion leads to code bloat

2017-07-25 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81540

Jakub Jelinek  changed:

   What|Removed |Added

 CC||jakub at gcc dot gnu.org

--- Comment #3 from Jakub Jelinek  ---
Estimating the size for non-switch converted switches is going to be really
hard.
Anyway, isn't -Os about code size (which is shorter when switch converted)
rather than total size of all sections?

[Bug fortran/80774] [7/8 Regression] ICE in gfc_conv_descriptor_data_get, at fortran/trans-array.c

2017-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80774

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P4

[Bug rtl-optimization/80747] [6/7/8 Regression] gcc.dg/tree-ssa/tailrecursion-4.c fails with ICE when compiled with options "-fprofile-use -freorder-blocks-and-partition"

2017-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80747

Richard Biener  changed:

   What|Removed |Added

 Target|mips-sde-elf|mips-sde-elf, x86_64-*-*
   Priority|P3  |P2
   Last reconfirmed|2017-05-15 00:00:00 |2017-7-25
 CC||hubicka at gcc dot gnu.org

--- Comment #4 from Richard Biener  ---
Honza?  You were looking into hot/cold partition issues lately.

Re-confirmed on trunk x86_64.

[Bug ipa/81520] [8 Regression] ICE: in function_and_variable_visibility, at ipa-visibility.c:639

2017-07-25 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81520

--- Comment #2 from Martin Liška  ---
Author: marxin
Date: Tue Jul 25 10:20:23 2017
New Revision: 250501

URL: https://gcc.gnu.org/viewcvs?rev=250501=gcc=rev
Log:
Fix wrong condition in ipa-visibility.c (PR ipa/81520).

2017-07-25  Martin Liska  

PR ipa/81520
* ipa-visibility.c (function_and_variable_visibility): Make the
redirection
just on target that do supporting aliasing.  Fix GNU coding style.
2017-07-25  Martin Liska  

PR ipa/81520
* gcc.dg/ipa/pr81520.c: New test.

Added:
trunk/gcc/testsuite/gcc.dg/ipa/pr81520.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/ipa-visibility.c
trunk/gcc/testsuite/ChangeLog

[Bug target/81534] [7/8 Regression] ICE in in extract_insn, at recog.c:2311 (unrecognizable insn)

2017-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81534

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2

[Bug target/81504] [7/8 Regression] gcc-7 regression: vec_st in loop misoptimized

2017-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81504

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2

[Bug tree-optimization/81455] [7/8 Regression] Compile-time hog w/ -O1 -funswitch-loops

2017-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81455

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2
 Status|NEW |ASSIGNED
   Assignee|unassigned at gcc dot gnu.org  |rguenth at gcc dot 
gnu.org

--- Comment #2 from Richard Biener  ---
I will have a look.

[Bug sanitizer/81212] [6/7/8 Regression] -Wreturn-type is disabled when used together with -fsanitize=return

2017-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81212

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|--- |6.5

[Bug rtl-optimization/80747] [6/7/8 Regression] gcc.dg/tree-ssa/tailrecursion-4.c fails with ICE when compiled with options "-fprofile-use -freorder-blocks-and-partition"

2017-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80747

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|--- |6.5

[Bug sanitizer/81281] [6/7/8 Regression] UBSAN: false positive, dropped promotion to long type.

2017-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81281

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|--- |6.5

[Bug rtl-optimization/80709] [8 Regression] ICE in setup_preferred_alternate_classes_for_new_pseudos, at ira.c:2772

2017-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80709

Richard Biener  changed:

   What|Removed |Added

Version|7.0 |8.0
   Target Milestone|--- |8.0

[Bug c/81448] False positive -Werror=multistatement-macros in openssl

2017-07-25 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81448

--- Comment #5 from Marek Polacek  ---
PR81364 is fixed, do you still see any false positives?

[Bug driver/81523] -static -pie behaves differently depending on if --enable-default-pie is used

2017-07-25 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81523

--- Comment #2 from H.J. Lu  ---
Created attachment 41825
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41825=edit
A patch

[Bug libgcc/61152] Missing GCC Runtime Library Exception in some files that are included in libgcc

2017-07-25 Thread sh at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61152

--- Comment #7 from sh at gcc dot gnu.org ---
Author: sh
Date: Tue Jul 25 10:06:23 2017
New Revision: 250500

URL: https://gcc.gnu.org/viewcvs?rev=250500=gcc=rev
Log:
[RTEMS] Add GCC Runtime Library Exception

gcc/

PR libgcc/61152
* config/aarch64/rtems.h: Add GCC Runtime Library Exception.
Format changes.
* config/arm/rtems.h: Likewise.
* config/bfin/rtems.h: Likewise.
* config/i386/rtemself.h: Likewise.
* config/lm32/rtems.h: Likewise.
* config/m32c/rtems.h: Likewise.
* config/m68k/rtemself.h: Likewise.
* config/microblaze/rtems.h: Likewise.
* config/mips/rtems.h: Likewise.
* config/moxie/rtems.h: Likewise.
* config/nios2/rtems.h: Likewise.
* config/powerpcspe/rtems.h: Likewise.
* config/rs6000/rtems.h: Likewise.
* config/rtems.h: Likewise.
* config/sh/rtems.h: Likewise.
* config/sh/rtemself.h: Likewise.
* config/sparc/rtemself.h: Likewise.

Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/aarch64/rtems.h
trunk/gcc/config/arm/rtems.h
trunk/gcc/config/bfin/rtems.h
trunk/gcc/config/i386/rtemself.h
trunk/gcc/config/lm32/rtems.h
trunk/gcc/config/m32c/rtems.h
trunk/gcc/config/m68k/rtemself.h
trunk/gcc/config/microblaze/rtems.h
trunk/gcc/config/mips/rtems.h
trunk/gcc/config/moxie/rtems.h
trunk/gcc/config/nios2/rtems.h
trunk/gcc/config/powerpcspe/rtems.h
trunk/gcc/config/rs6000/rtems.h
trunk/gcc/config/rtems.h
trunk/gcc/config/sh/rtems.h
trunk/gcc/config/sh/rtemself.h
trunk/gcc/config/sparc/rtemself.h
trunk/gcc/config/v850/rtems.h

[Bug c++/81073] [5/6 Regression] link failure as C++ misses to instantiate some objects

2017-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81073

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2
  Known to work||7.1.1, 8.0
Summary|[5/6/7/8 Regression] link   |[5/6 Regression] link
   |failure as C++ misses to|failure as C++ misses to
   |instantiate some objects|instantiate some objects
  Known to fail|8.0 |

--- Comment #13 from Richard Biener  ---
Seems to work on 7 branch and trunk now.

[Bug tree-optimization/81546] [8 Regression] ICE at -O3 during GIMPLE pass dom

2017-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81546

Richard Biener  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |FIXED

--- Comment #6 from Richard Biener  ---
ICE fixed.  SLSR issue tracked in PR81488.

[Bug libstdc++/81395] [5/6/7 Regression] basic_filebuf::overflow recurses and overflows stack

2017-07-25 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81395

Paolo Carlini  changed:

   What|Removed |Added

  Known to work||8.0
Summary|[5/6/7/8 Regression]|[5/6/7 Regression]
   |basic_filebuf::overflow |basic_filebuf::overflow
   |recurses and overflows  |recurses and overflows
   |stack   |stack
  Known to fail|8.0 |

--- Comment #16 from Paolo Carlini  ---
Done.

[Bug fortran/80774] [7/8 Regression] ICE in gfc_conv_descriptor_data_get, at fortran/trans-array.c

2017-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80774

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|--- |7.2

[Bug c/80778] [7/8 Regression] gcc.dg/auto-type-1.c ICEs with -flto

2017-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80778

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|--- |7.2

[Bug fortran/80657] [7/8 Regression] Loop in character function declaration

2017-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80657

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|--- |7.2

[Bug tree-optimization/81455] [7/8 Regression] Compile-time hog w/ -O1 -funswitch-loops

2017-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81455

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|--- |7.2

[Bug c++/80956] [7/8 Regression] ICE with abstract class vector

2017-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80956

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|--- |7.2

[Bug middle-end/80929] [7/8 Regression] Division with constant no more optimized to mult highpart

2017-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80929

--- Comment #4 from Richard Biener  ---
Fixed?

[Bug fortran/52162] Bogus -fcheck=bounds with realloc on assignment to unallocated LHS

2017-07-25 Thread tkoenig at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52162

Thomas Koenig  changed:

   What|Removed |Added

 CC||vladimir.fuka at gmail dot com

--- Comment #10 from Thomas Koenig  ---
*** Bug 58861 has been marked as a duplicate of this bug. ***

[Bug fortran/58861] Realloc on assignment: Bogus "Array bound mismatch" error with -fcheck=bounds

2017-07-25 Thread tkoenig at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58861

Thomas Koenig  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||tkoenig at gcc dot gnu.org
 Resolution|--- |DUPLICATE

--- Comment #7 from Thomas Koenig  ---
This bug goes away with the patch in

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52162#c8

Resolving as duplicate.

*** This bug has been marked as a duplicate of bug 52162 ***

[Bug rtl-optimization/81288] [5/6/7/8 Regression] ICE on 32-bit BE powerpc targets -w -misel -O2 (-O3, -Ofast, -Os)

2017-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81288

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2

[Bug target/81228] [7/8 Regression] ICE in gen_vec_cmpv2dfv2di, at config/aarch64/aarch64-simd.md:2508

2017-07-25 Thread amker at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81228

amker at gcc dot gnu.org changed:

   What|Removed |Added

   Assignee|unassigned at gcc dot gnu.org  |amker at gcc dot gnu.org

--- Comment #2 from amker at gcc dot gnu.org ---
I will investigate.

[Bug target/81291] [5/6/7/8 Regression] wrong code with -O2 -fno-rerun-cse-after-loop -fno-tree-ter -fno-tree-vrp -funroll-loops due to improper carry

2017-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81291

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2

[Bug tree-optimization/81488] [8 Regression] gcc goes off the limits allocating memory in gimple-ssa-strength-reduction.c

2017-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81488

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P1
 Status|UNCONFIRMED |NEW
   Last reconfirmed||2017-07-25
 CC||wschmidt at gcc dot gnu.org
  Known to work||7.1.1
   Target Milestone|--- |8.0
Summary|gcc goes off the limits |[8 Regression] gcc goes off
   |allocating memory in|the limits allocating
   |gimple-ssa-strength-reducti |memory in
   |on.c|gimple-ssa-strength-reducti
   ||on.c
 Ever confirmed|0   |1

--- Comment #1 from Richard Biener  ---
Confirmed via PR81546 (I fixed the ICE now).

[Bug tree-optimization/81546] [8 Regression] ICE at -O3 during GIMPLE pass dom

2017-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81546

--- Comment #5 from Richard Biener  ---
Author: rguenth
Date: Tue Jul 25 11:05:55 2017
New Revision: 250505

URL: https://gcc.gnu.org/viewcvs?rev=250505=gcc=rev
Log:
2017-07-25  Richard Biener  

PR middle-end/81546
* tree-ssa-operands.c (verify_imm_links): Remove cap on number
of immediate uses, be more verbose on errors.

Modified:
trunk/gcc/ChangeLog
trunk/gcc/tree-ssa-operands.c

[Bug target/79793] Incorrect stack alignment for interrupt handler in 64-bit

2017-07-25 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79793

--- Comment #10 from H.J. Lu  ---
Created attachment 41827
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41827=edit
An untested patch

[Bug tree-optimization/81546] [8 Regression] ICE at -O3 during GIMPLE pass dom

2017-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81546

--- Comment #4 from Richard Biener  ---
Note the immediate use verification error is

  /* Avoid infinite loops.  50,000,000 uses probably indicates a
 problem.  */
  if (count++ > 5000)
goto error;

which is spurious, the issue is SLSR creating a gigantic function from nothing.

[Bug libgomp/80881] [7/8 Regression] null pointer access in libgomp.h

2017-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80881

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2
Summary|[7 Regression] null pointer |[7/8 Regression] null
   |access in libgomp.h |pointer access in libgomp.h

[Bug libstdc++/81395] [5/6/7/8 Regression] basic_filebuf::overflow recurses and overflows stack

2017-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81395

Richard Biener  changed:

   What|Removed |Added

   Keywords||wrong-code
   Priority|P3  |P2

--- Comment #15 from Richard Biener  ---
Fixed on trunk? (adjust summary and known-to-fail/work)

[Bug target/81414] [6/7 Regression] ICE in fma steering on AArch64/cortex-a57

2017-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81414

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2
  Known to work||8.0
Summary|[6/7/8 Regression] ICE in   |[6/7 Regression] ICE in fma
   |fma steering on |steering on
   |AArch64/cortex-a57  |AArch64/cortex-a57
  Known to fail|8.0 |

--- Comment #3 from Richard Biener  ---
Fixed on trunk I suppose.

[Bug tree-optimization/81303] [8 Regression] 410.bwaves regression caused by r249919

2017-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81303

--- Comment #9 from Richard Biener  ---
Author: rguenth
Date: Tue Jul 25 10:59:15 2017
New Revision: 250503

URL: https://gcc.gnu.org/viewcvs?rev=250503=gcc=rev
Log:
2017-07-25  Richard Biener  

PR tree-optimization/81303
* tree-vect-loop-manip.c (vect_loop_versioning): Build
profitability check against LOOP_VINFO_NITERSM1.

Modified:
trunk/gcc/ChangeLog
trunk/gcc/tree-vect-loop-manip.c

[Bug target/81414] [6/7 Regression] ICE in fma steering on AArch64/cortex-a57

2017-07-25 Thread amker at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81414

--- Comment #4 from amker at gcc dot gnu.org ---
(In reply to Richard Biener from comment #3)
> Fixed on trunk I suppose.

Yes, I will wait then backport it to 6/7 next Monday if no regression.

[Bug c++/81410] [5/6/7 Regression] -O3 breaks code

2017-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81410

--- Comment #11 from Richard Biener  ---
Author: rguenth
Date: Tue Jul 25 11:28:08 2017
New Revision: 250506

URL: https://gcc.gnu.org/viewcvs?rev=250506=gcc=rev
Log:
2017-07-25  Richard Biener  

PR tree-optimization/81410
* gcc.dg/vect/pr81410.c: Do not typedef uint64_t.

Modified:
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gcc.dg/vect/pr81410.c

[Bug tree-optimization/49857] Put constant switch-tables into flash

2017-07-25 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49857

--- Comment #16 from Georg-Johann Lay  ---
(In reply to Georg-Johann Lay from comment #15)
> pr49857-v2-all.diff: Proposed patch

Problems so far:

* ivopts may shred address-space which results in wrong code.  This is is the
  reason for why the patch doesn't -maddr-space-for-lookup=memx

$ make -k check-gcc RUNTESTFLAGS="--target_board=atmega128-sim
execute.exp='20120808-1.c pr35800.c' --tool_opts=-maddr-space-for-lookup=memx"

* tree-swich-conversion might bloat the code, cf. PR81540 so it may even
  be better to disable tree-switch-conversion per default.

[Bug other/49578] Profiling: call graph table overflows on Solaris.

2017-07-25 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49578

Eric Gallager  changed:

   What|Removed |Added

 Status|WAITING |RESOLVED
 Resolution|--- |WONTFIX

--- Comment #2 from Eric Gallager  ---
Reporter emailed me to say he no longer has Solaris machines for testing an
updated patch and that it's okay if this never gets fixed. So I'm closing it.
Anyone who does have Solaris who does actually want to see this fixed can feel
free to reopen if necessary.

[Bug tree-optimization/81549] PHI node should be eliminated if loop iterates enough times.

2017-07-25 Thread rguenther at suse dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81549

--- Comment #4 from rguenther at suse dot de  ---
On Tue, 25 Jul 2017, amker at gcc dot gnu.org wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81549
> 
> --- Comment #2 from amker at gcc dot gnu.org ---
> (In reply to Richard Biener from comment #1)
> > Confirmed.  This is sort of final value replacement (but not SCEV based).
> Hi, do we have dedicated pass responsible for this transformation?  Thanks.

Yes, pass_scev_cprop.

[Bug tree-optimization/81503] [8 Regression] Wrong code at -O2

2017-07-25 Thread wschmidt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81503

--- Comment #7 from Bill Schmidt  ---
Try -fno-slsr.

[Bug tree-optimization/81488] [8 Regression] gcc goes off the limits allocating memory in gimple-ssa-strength-reduction.c

2017-07-25 Thread wschmidt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81488

Bill Schmidt  changed:

   What|Removed |Added

   Assignee|unassigned at gcc dot gnu.org  |wschmidt at gcc dot 
gnu.org

--- Comment #2 from Bill Schmidt  ---
Mine.  Please be patient while I work through the sudden influx of bug reports.

[Bug target/79041] aarch64 backend emits R_AARCH64_ADR_PREL_PG_HI21 relocation despite -mpc-relative-literal-loads option being used

2017-07-25 Thread wilco at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79041

Wilco  changed:

   What|Removed |Added

 CC||wilco at gcc dot gnu.org

--- Comment #9 from Wilco  ---
Fixed in GCC7 and trunk. GCC6 requires
https://gcc.gnu.org/ml/gcc-patches/2017-06/msg01708.html.

[Bug target/81532] [8 Regression] insn does not satisfy its constraints: extract_constrain_insn, at recog.c:2213

2017-07-25 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81532

Jakub Jelinek  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #4 from Jakub Jelinek  ---
Fixed.  Yd/Ye doesn't exist in gcc 7 and earlier.

[Bug libfortran/80365] undefined memcpy while writing zero length array on unformatted stream in unix.c

2017-07-25 Thread tkoenig at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80365

Thomas Koenig  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #7 from Thomas Koenig  ---
From the lack of reaction, no interest in backporting.

Closing.

[Bug fortran/79930] Potentially Missed Optimisation for MATMUL / DOT_PRODUCT

2017-07-25 Thread tkoenig at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79930

Thomas Koenig  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #16 from Thomas Koenig  ---
Let's keep this as a speed improvement for 8.1.

Closing

[Bug tree-optimization/81529] [8 Regression] ICE in vectorizable_induction, at tree-vect-loop.c:6613

2017-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81529

--- Comment #4 from Richard Biener  ---
Author: rguenth
Date: Tue Jul 25 13:22:31 2017
New Revision: 250517

URL: https://gcc.gnu.org/viewcvs?rev=250517=gcc=rev
Log:
2017-07-25  Richard Biener  

PR tree-optimization/81529
* tree-vect-stmts.c (process_use): Disregard live induction PHIs
when optimizing backedge uses.

* gfortran.dg/pr81529.f90: New testcase.

Added:
trunk/gcc/testsuite/gfortran.dg/pr81529.f90
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-vect-stmts.c

[Bug c/39117] missed strict-aliasing warning

2017-07-25 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=39117

Eric Gallager  changed:

   What|Removed |Added

   Keywords||diagnostic
 CC||egallager at gcc dot gnu.org

--- Comment #3 from Eric Gallager  ---
(In reply to Benjamin Kosnik from comment #0)
> From this thread:
> http://gcc.gnu.org/ml/gcc-patches/2009-02/msg00271.html
> 
> Compiling with -c -g -O2 -Wall from r143978, I only get one warning, but
> should get two.
> 
> struct A 
> { 
>   int j;
>   int i; 
> };
> 
> void foo()
> {
>   char buf[sizeof(struct A)];
> 
>   // warns
>   ((struct A*)buf)->i = 1;
>  
>   // does not warn
>   struct A* p = (struct A*) buf;
>   p->i = 4;
> }
> 
> Gives:
> alias2.c: In function ‘void foo()’:
> alias2.c:12: warning: dereferencing type-punned pointer will break
> strict-aliasing rules

Trying again with newer trunk, and I don't even get the first warning! GCC is
completely silent with all of these: 

$ /usr/local/bin/gcc -c -g -O2 -Wall 39117.c
$ /usr/local/bin/gcc -c -g -O2 -Wstrict-aliasing=1 39117.c
$ /usr/local/bin/gcc -c -g -O2 -Wstrict-aliasing=2 39117.c
$ /usr/local/bin/gcc -c -g -O2 -Wstrict-aliasing=3 39117.c
$ /usr/local/bin/gcc -c -g -O1 -Wall 39117.c
$ /usr/local/bin/gcc -c -g -O0 -Wall 39117.c
$ /usr/local/bin/gcc -c -g -Og -Wall 39117.c
$ /usr/local/bin/gcc -c -g -Os -Wall 39117.c
$ /usr/local/bin/gcc -c -g -O3 -Wall 39117.c
$ /usr/local/bin/gcc -c -g -Ofast -Wall 39117.c
$

[Bug tree-optimization/81455] [7 Regression] Compile-time hog w/ -O1 -funswitch-loops

2017-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81455

Richard Biener  changed:

   What|Removed |Added

  Known to work||8.0
Summary|[7/8 Regression]|[7 Regression] Compile-time
   |Compile-time hog w/ -O1 |hog w/ -O1 -funswitch-loops
   |-funswitch-loops|

--- Comment #4 from Richard Biener  ---
Author: rguenth
Date: Tue Jul 25 13:24:51 2017
New Revision: 250518

URL: https://gcc.gnu.org/viewcvs?rev=250518=gcc=rev
Log:
2017-07-25  Richard Biener  

PR tree-optimization/81455
* tree-ssa-loop-unswitch.c (find_loop_guard): Make sure to
not walk in cycles when looking for guards.

* gcc.dg/pr81455.c: New testcase.

Added:
trunk/gcc/testsuite/gcc.dg/pr81455.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-ssa-loop-unswitch.c

[Bug tree-optimization/81455] [7 Regression] Compile-time hog w/ -O1 -funswitch-loops

2017-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81455

Richard Biener  changed:

   What|Removed |Added

  Known to work||8.0
Summary|[7/8 Regression]|[7 Regression] Compile-time
   |Compile-time hog w/ -O1 |hog w/ -O1 -funswitch-loops
   |-funswitch-loops|

--- Comment #4 from Richard Biener  ---
Author: rguenth
Date: Tue Jul 25 13:24:51 2017
New Revision: 250518

URL: https://gcc.gnu.org/viewcvs?rev=250518=gcc=rev
Log:
2017-07-25  Richard Biener  

PR tree-optimization/81455
* tree-ssa-loop-unswitch.c (find_loop_guard): Make sure to
not walk in cycles when looking for guards.

* gcc.dg/pr81455.c: New testcase.

Added:
trunk/gcc/testsuite/gcc.dg/pr81455.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-ssa-loop-unswitch.c

[Bug c/81544] attribute noreturn and warn_unused_result on the same function accepted

2017-07-25 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81544

Marek Polacek  changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2017-07-25
 CC||mpolacek at gcc dot gnu.org
   Assignee|unassigned at gcc dot gnu.org  |mpolacek at gcc dot 
gnu.org
 Ever confirmed|0   |1

  1   2   3   >