[Bug tree-optimization/71815] New: SLSR misses several PHI candidate cases

2016-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71815

Bug ID: 71815
   Summary: SLSR misses several PHI candidate cases
   Product: gcc
   Version: 7.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: tree-optimization
  Assignee: unassigned at gcc dot gnu.org
  Reporter: rguenth at gcc dot gnu.org
  Target Milestone: ---

Derived from gcc.dg/tree-ssa/slsr-3[56].c which fail with code hoisting
enabled.

int 
f (int s, int c, int i) 
{   
  int a1, a3, x1, x3, x;

  a1 = i * s;   
  x1 = c + a1;  
  i = i + 2;

  if (x1 > 6)   
i = i + 2;  

  a3 = i * s;   
  x3 = c + a3;  

  x = x1 + x3;  
  return x; 
} 

fails to SLSR properly.  With forwprop enabled the conditional i increment
gets rewritten to i = i + 4 and i = i + 2 is sunk into the else arm
which is handled but in a suboptimal way:

  :
  a1_4 = i_2(D) * s_3(D);
  x1_6 = a1_4 + c_5(D);
  if (x1_6 > 6)
goto ;
  else
goto ;

  :
  i_7 = i_2(D) + 2;
  slsr_16 = s_3(D) * 2;
  slsr_14 = a1_4 + slsr_16;
  goto ;

  :
  i_8 = i_2(D) + 4;
  slsr_15 = s_3(D) * 4;
  slsr_13 = a1_4 + slsr_15;

  :
  # i_1 = PHI 
  # slsr_17 = PHI 
  a3_9 = slsr_17;
  x3_10 = c_5(D) + a3_9;
  x_11 = x1_6 + x3_10;
  return x_11;

when code-hoisting is enabled on gcc.dg/tree-ssa/slsr-3[56].c we get the same
effect as with -fno-tree-forwprop on the above testcase - the increment after
the if gets hoisted before it, and slsr fails:

  :
  a1_4 = i_2(D) * s_3(D);
  x1_6 = c_5(D) + a1_4;
  i_7 = i_2(D) + 2;
  if (x1_6 > 6)
goto ;
  else
goto ;

  :
  i_8 = i_7 + 2;
  slsr_16 = s_3(D) * 4;

  :
  # i_1 = PHI 
  a3_9 = i_1 * s_3(D);
  x3_10 = c_5(D) + a3_9;
  x_11 = x1_6 + x3_10;
  return x_11;

[Bug c++/69797] [4.9 Regression] ICE on invalid code on x86_64-linux-gnu in operator[], at vec.h:714

2016-07-08 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69797

Jakub Jelinek  changed:

   What|Removed |Added

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

--- Comment #8 from Jakub Jelinek  ---
Fixed.

[Bug tree-optimization/69802] [4.9 Regression] gcc ICE at -O1 and above on valid code on x86_64-linux-gnu with “seg fault”

2016-07-08 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69802

Jakub Jelinek  changed:

   What|Removed |Added

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

--- Comment #8 from Jakub Jelinek  ---
Fixed.

[Bug c++/67767] -Wsuggest-attribute=noreturn suggests noreturn for function which already has noreturn and cold.

2016-07-08 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67767

Jakub Jelinek  changed:

   What|Removed |Added

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

--- Comment #8 from Jakub Jelinek  ---
Fixed.

[Bug rtl-optimization/69891] wrong code with -mstringop-strategy=libcall @ i686

2016-07-08 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69891

Jakub Jelinek  changed:

   What|Removed |Added

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

--- Comment #18 from Jakub Jelinek  ---
Fixed.

[Bug tree-optimization/70169] [4.9 Regression] ICE at -O1 and above on x86_64-linux-gnu in gen_lsm_tmp_name, at tree-ssa-loop.c:791

2016-07-08 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70169

Jakub Jelinek  changed:

   What|Removed |Added

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

--- Comment #9 from Jakub Jelinek  ---
Fixed.

[Bug tree-optimization/70152] [4.9 Regression] gcc ICE at -O3 and above on valid code on x86_64-linux-gnu in "replace_uses_by"

2016-07-08 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70152

Jakub Jelinek  changed:

   What|Removed |Added

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

--- Comment #8 from Jakub Jelinek  ---
Fixed.

[Bug rtl-optimization/70222] Test miscompiled with -O1

2016-07-08 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70222

Jakub Jelinek  changed:

   What|Removed |Added

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

--- Comment #15 from Jakub Jelinek  ---
Fixed.

[Bug rtl-optimization/70429] Wrong code with -O1.

2016-07-08 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70429

Jakub Jelinek  changed:

   What|Removed |Added

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

--- Comment #12 from Jakub Jelinek  ---
Fixed.

[Bug sanitizer/71160] libasan: Backport support for malloc within dlsym

2016-07-08 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71160

Jakub Jelinek  changed:

   What|Removed |Added

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

--- Comment #5 from Jakub Jelinek  ---
Backported to all open release branches.

[Bug middle-end/71494] [4.9 Regression] label as value in nested function

2016-07-08 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71494

Jakub Jelinek  changed:

   What|Removed |Added

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

--- Comment #9 from Jakub Jelinek  ---
Fixed.

[Bug middle-end/71626] [4.9 regression] ICE at -O1 and above on x86_64-linux-gnu (in output_constant_pool_2, at varasm.c:3837)

2016-07-08 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71626

Jakub Jelinek  changed:

   What|Removed |Added

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

--- Comment #10 from Jakub Jelinek  ---
Fixed.

[Bug tree-optimization/71588] [4.9 Regression] ICE on valid code at -O2 and -O3 on x86_64-linux-gnu: in execute_todo, at passes.c:2009

2016-07-08 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71588

Jakub Jelinek  changed:

   What|Removed |Added

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

--- Comment #10 from Jakub Jelinek  ---
Fixed.

[Bug fortran/71705] [4.9 Regression] ICE in lower_omp_target, at omp-low.c:16136

2016-07-08 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71705

Jakub Jelinek  changed:

   What|Removed |Added

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

--- Comment #9 from Jakub Jelinek  ---
Fixed.

[Bug fortran/71717] A gfortran silent "wrong code" bug in the transition from 4.9.0 -> 4.9.1, using OpenMP.

2016-07-08 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71717

Jakub Jelinek  changed:

   What|Removed |Added

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

--- Comment #6 from Jakub Jelinek  ---
Fixed.

[Bug fortran/71704] ICE with -fopenmp and some omp constructs

2016-07-08 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71704

Jakub Jelinek  changed:

   What|Removed |Added

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

--- Comment #7 from Jakub Jelinek  ---
Fixed.

[Bug tree-optimization/71802] [7 Regression] gcc ICE at -O3 on valid code on x86_64-linux-gnu in expand_LOOP_VECTORIZED

2016-07-08 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71802

Jakub Jelinek  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2016-07-08
 CC||jakub at gcc dot gnu.org
 Ever confirmed|0   |1

--- Comment #1 from Jakub Jelinek  ---
Started with r236440.

[Bug fortran/71807] [5/6/7 Regression] Internal compiler error with NULL() reference in structure constructor

2016-07-08 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71807

Martin Liška  changed:

   What|Removed |Added

   Keywords||ice-on-valid-code
 Status|UNCONFIRMED |NEW
   Last reconfirmed||2016-07-08
 CC||marxin at gcc dot gnu.org
   Target Milestone|--- |5.5
Summary|Internal compiler error |[5/6/7 Regression] Internal
   |with NULL() reference in|compiler error with NULL()
   |structure constructor   |reference in structure
   ||constructor
 Ever confirmed|0   |1

--- Comment #1 from Martin Liška  ---
Confirmed, it's a regression since GCC 5.

[Bug c++/71814] [6/7 Regression] ICE on valid C++11 code: in write_type, at cp/mangle.c:2158

2016-07-08 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71814

Jakub Jelinek  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2016-07-08
 CC||jakub at gcc dot gnu.org,
   ||jason at gcc dot gnu.org
   Target Milestone|--- |6.2
Summary|ICE on valid C++11 code: in |[6/7 Regression] ICE on
   |write_type, at  |valid C++11 code: in
   |cp/mangle.c:2158|write_type, at
   ||cp/mangle.c:2158
 Ever confirmed|0   |1

--- Comment #1 from Jakub Jelinek  ---
Started with r233758.

[Bug c/71812] gcc6/c++/functional:1726:40: internal compiler error: in assign_temp, at function.c:961

2016-07-08 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71812

Jakub Jelinek  changed:

   What|Removed |Added

 CC||jakub at gcc dot gnu.org

--- Comment #2 from Jakub Jelinek  ---
If you are using 6.1.0 release, then try using a newer 6.1.1 snapshot instead.
This is very likely fixed already.

[Bug c++/71808] [concepts] ICE in finish_member_declaration

2016-07-08 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71808

Martin Liška  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2016-07-08
 CC||marxin at gcc dot gnu.org
 Ever confirmed|0   |1
  Known to fail||6.1.0

--- Comment #1 from Martin Liška  ---
Confirmed.

[Bug c++/71811] gcc6/c++/functional:1726:40: internal compiler error: in assign_temp, at function.c:961

2016-07-08 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71811

Martin Liška  changed:

   What|Removed |Added

 CC||marxin at gcc dot gnu.org

--- Comment #1 from Martin Liška  ---
Can't reproduce that on x86_64-linux-gnu.

[Bug fortran/71807] [5/6/7 Regression] Internal compiler error with NULL() reference in structure constructor

2016-07-08 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71807

Jakub Jelinek  changed:

   What|Removed |Added

 CC||jakub at gcc dot gnu.org,
   ||vehre at gcc dot gnu.org

--- Comment #2 from Jakub Jelinek  ---
Started with r219801.

[Bug fortran/71799] [7 Regression] ICE in DO loop code emission (gfc_resolve_iterator)

2016-07-08 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71799

--- Comment #2 from Martin Liška  ---
(In reply to kargl from comment #1)
> Index: resolve.c
> ===
> --- resolve.c (revision 237855)
> +++ resolve.c (working copy)
> @@ -6515,15 +6515,15 @@ gfc_resolve_iterator (gfc_iterator *iter
>/* Convert start, end, and step to the same type as var.  */
>if (iter->start->ts.kind != iter->var->ts.kind
>|| iter->start->ts.type != iter->var->ts.type)
> -gfc_convert_type (iter->start, &iter->var->ts, 2);
> +gfc_convert_type (iter->start, &iter->var->ts, 1);
>  
>if (iter->end->ts.kind != iter->var->ts.kind
>|| iter->end->ts.type != iter->var->ts.type)
> -gfc_convert_type (iter->end, &iter->var->ts, 2);
> +gfc_convert_type (iter->end, &iter->var->ts, 1);
>  
>if (iter->step->ts.kind != iter->var->ts.kind
>|| iter->step->ts.type != iter->var->ts.type)
> -gfc_convert_type (iter->step, &iter->var->ts, 2);
> +gfc_convert_type (iter->step, &iter->var->ts, 1);
>  
>if (iter->start->expr_type == EXPR_CONSTANT
>&& iter->end->expr_type == EXPR_CONSTANT

Thank you for the patch, are you going to test it and send to ML?
I can do it, if you want?

[Bug middle-end/71606] [4.9/5/6/7 Regression] ICE on -O2 and above on x86_64-linux-gnu (internal compiler error: in get_expr_operands, at tree-ssa-operands.c:882)

2016-07-08 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71606

--- Comment #3 from Martin Liška  ---
Author: marxin
Date: Fri Jul  8 07:52:03 2016
New Revision: 238157

URL: https://gcc.gnu.org/viewcvs?rev=238157&root=gcc&view=rev
Log:
Do not consider COMPLEX_TYPE as fold_convertible_p

PR middle-end/71606
* fold-const.c (fold_convertible_p): As COMPLEX_TYPE
folding produces SAVE_EXPRs, thus return false for the type.
* gcc.dg/torture/pr71606.c: New test.

Added:
trunk/gcc/testsuite/gcc.dg/torture/pr71606.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/fold-const.c
trunk/gcc/testsuite/ChangeLog

[Bug middle-end/71606] [4.9/5/6 Regression] ICE on -O2 and above on x86_64-linux-gnu (internal compiler error: in get_expr_operands, at tree-ssa-operands.c:882)

2016-07-08 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71606

Martin Liška  changed:

   What|Removed |Added

Summary|[4.9/5/6/7 Regression] ICE  |[4.9/5/6 Regression] ICE on
   |on -O2 and above on |-O2 and above on
   |x86_64-linux-gnu (internal  |x86_64-linux-gnu (internal
   |compiler error: in  |compiler error: in
   |get_expr_operands, at   |get_expr_operands, at
   |tree-ssa-operands.c:882)|tree-ssa-operands.c:882)

--- Comment #4 from Martin Liška  ---
Fixed on trunk, I've been testing backports.

[Bug c/71812] gcc6/c++/functional:1726:40: internal compiler error: in assign_temp, at function.c:961

2016-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71812

--- Comment #3 from Richard Biener  ---
Duplicate of PR71811?

[Bug libstdc++/71809] compile llvm3.8.0 failed by the libstdc++ of gcc6.1.0

2016-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71809

Richard Biener  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |INVALID

--- Comment #3 from Richard Biener  ---
clang bug

[Bug tree-optimization/71802] [7 Regression] gcc ICE at -O3 on valid code on x86_64-linux-gnu in expand_LOOP_VECTORIZED

2016-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71802

Richard Biener  changed:

   What|Removed |Added

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

--- Comment #2 from Richard Biener  ---
I will investigate.

[Bug c++/71814] [6/7 Regression] ICE on valid C++11 code: in write_type, at cp/mangle.c:2158

2016-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71814

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2

[Bug fortran/71807] [5/6/7 Regression] Internal compiler error with NULL() reference in structure constructor

2016-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71807

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P4

[Bug fortran/71783] [5/6/7 Regression ] ICE on valid code in gimplify_var_or_parm_decl at gimplify.c:1801

2016-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71783

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P4

[Bug rtl-optimization/71779] [5/6/7 regression] isl miscompiled with -mabi=ilp32

2016-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71779

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2

[Bug c++/71774] [5/6/7 regression] Bogus "is protected" error when list-initializing a base class with a defaulted protected constructor and a virtual function

2016-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71774

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2

[Bug target/71778] [6/7 Regression][ARM] ICE using non-constant argument to Neon intrinsic that requires constant arguments

2016-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71778

Richard Biener  changed:

   What|Removed |Added

   Keywords||error-recovery
   Priority|P3  |P4

[Bug fortran/71764] [4.9/5/6/7 Regression] ICE in gfc_trans_structure_assign

2016-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71764

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P4

[Bug middle-end/71762] [4.9/5/6/7 Regression] ~X & Y to X < Y doesn't work for uninitialized values

2016-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71762

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2

[Bug c++/71756] [6/7 Regression] internal compiler error: in ~saved_token_sentinel, at cp/parser.c:1228

2016-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71756

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2

[Bug c++/71747] [4.9/5/6/7 Regression] ICE on invalid C++11 code with misuse of overloaded operator '()': Segmentation fault (program cc1plus)

2016-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71747

Richard Biener  changed:

   What|Removed |Added

   Keywords||ice-on-invalid-code
   Priority|P3  |P2

[Bug c++/71748] [4.9/5/6/7 Regression] ICE on valid (?) C++ template code invoking a base destructor: in build_base_path, at cp/class.c:304

2016-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71748

Richard Biener  changed:

   What|Removed |Added

   Keywords||ice-on-valid-code
   Priority|P3  |P2
  Known to work||4.6.4

[Bug c++/71738] [4.9/5/6/7 Regression] ICE on valid C++ code: tree check: expected record_type or union_type or qual_union_type, have template_decl in lookup_template_class_1, at cp/pt.c:8619

2016-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71738

Richard Biener  changed:

   What|Removed |Added

   Keywords||ice-on-valid-code
   Priority|P3  |P2

[Bug c++/71737] [4.9/5/6/7 Regression] ICE following 2x pack expansion in non-pack with template alias

2016-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71737

Richard Biener  changed:

   What|Removed |Added

   Keywords||error-recovery
   Priority|P3  |P4

[Bug bootstrap/71816] New: [7 Regression] bootstrap broken on armhf-linux-gnuabihf

2016-07-08 Thread doko at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71816

Bug ID: 71816
   Summary: [7 Regression] bootstrap broken on
armhf-linux-gnuabihf
   Product: gcc
   Version: 7.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: bootstrap
  Assignee: unassigned at gcc dot gnu.org
  Reporter: doko at gcc dot gnu.org
  Target Milestone: ---

seen with r238117, gcc configured with

 --enable-languages=c,ada,c++,java,go,fortran,objc,obj-c++
 --prefix=/usr/lib/gcc-snapshot
 --enable-shared
 --enable-linker-build-id
 --disable-nls
 --with-sysroot=/
 --enable-clocale=gnu
 --enable-libstdcxx-debug
 --enable-libstdcxx-time=yes
 --with-default-libstdcxx-abi=new
 --enable-gnu-unique-object
 --disable-libitm
 --disable-libquadmath
 --enable-plugin
 --with-system-zlib
 --enable-multiarch
 --enable-multilib
 --disable-sjlj-exceptions
 --with-arch=armv7-a
 --with-fpu=vfpv3-d16
 --with-float=hard
 --with-mode=thumb
 --disable-werror
 --enable-multilib
 --enable-checking=yes
 --build=arm-linux-gnueabihf
 --host=arm-linux-gnueabihf
 --target=arm-linux-gnueabihf


/«PKGBUILDDIR»/build/./prev-gcc/xg++ -B/«PKGBUILDDIR»/build/./prev-gcc/
-B/usr/lib/gcc-snapshot/arm-linux-gnueabihf/bin/ -nostdinc++
-B/«PKGBUILDDIR»/build/prev-arm-linux-gnueabihf/libstdc++-v3/src/.libs
-B/«PKGBUILDDIR»/build/prev-arm-linux-gnueabihf/libstdc++-v3/libsupc++/.libs 
-I/«PKGBUILDDIR»/build/prev-arm-linux-gnueabihf/libstdc++-v3/include/arm-linux-gnueabihf
 -I/«PKGBUILDDIR»/build/prev-arm-linux-gnueabihf/libstdc++-v3/include 
-I/«PKGBUILDDIR»/src/libstdc++-v3/libsupc++
-L/«PKGBUILDDIR»/build/prev-arm-linux-gnueabihf/libstdc++-v3/src/.libs
-L/«PKGBUILDDIR»/build/prev-arm-linux-gnueabihf/libstdc++-v3/libsupc++/.libs -c
  -g -O2 -gtoggle -DIN_GCC -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common 
-DHAVE_CONFIG_H -DGENERATOR_FILE -fno-PIE -I. -Ibuild -I../../src/gcc
-I../../src/gcc/build -I../../src/gcc/../include 
-I../../src/gcc/../libcpp/include  \
-o build/genattrtab.o ../../src/gcc/genattrtab.c
/«PKGBUILDDIR»/build/./prev-gcc/xg++ -B/«PKGBUILDDIR»/build/./prev-gcc/
-B/usr/lib/gcc-snapshot/arm-linux-gnueabihf/bin/ -nostdinc++
-B/«PKGBUILDDIR»/build/prev-arm-linux-gnueabihf/libstdc++-v3/src/.libs
-B/«PKGBUILDDIR»/build/prev-arm-linux-gnueabihf/libstdc++-v3/libsupc++/.libs 
-I/«PKGBUILDDIR»/build/prev-arm-linux-gnueabihf/libstdc++-v3/include/arm-linux-gnueabihf
 -I/«PKGBUILDDIR»/build/prev-arm-linux-gnueabihf/libstdc++-v3/include 
-I/«PKGBUILDDIR»/src/libstdc++-v3/libsupc++
-L/«PKGBUILDDIR»/build/prev-arm-linux-gnueabihf/libstdc++-v3/src/.libs
-L/«PKGBUILDDIR»/build/prev-arm-linux-gnueabihf/libstdc++-v3/libsupc++/.libs -c
  -g -O2 -gtoggle -DIN_GCC -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common 
-DHAVE_CONFIG_H -DGENERATOR_FILE -fno-PIE -I. -Ibuild -I../../src/gcc
-I../../src/gcc/build -I../../src/gcc/../include 
-I../../src/gcc/../libcpp/include  \
-o build/genautomata.o ../../src/gcc/genautomata.c
/«PKGBUILDDIR»/build/./prev-gcc/xg++ -B/«PKGBUILDDIR»/build/./prev-gcc/
-B/usr/lib/gcc-snapshot/arm-linux-gnueabihf/bin/ -nostdinc++
-B/«PKGBUILDDIR»/build/prev-arm-linux-gnueabihf/libstdc++-v3/src/.libs
-B/«PKGBUILDDIR»/build/prev-arm-linux-gnueabihf/libstdc++-v3/libsupc++/.libs 
-I/«PKGBUILDDIR»/build/prev-arm-linux-gnueabihf/libstdc++-v3/include/arm-linux-gnueabihf
 -I/«PKGBUILDDIR»/build/prev-arm-linux-gnueabihf/libstdc++-v3/include 
-I/«PKGBUILDDIR»/src/libstdc++-v3/libsupc++
-L/«PKGBUILDDIR»/build/prev-arm-linux-gnueabihf/libstdc++-v3/src/.libs
-L/«PKGBUILDDIR»/build/prev-arm-linux-gnueabihf/libstdc++-v3/libsupc++/.libs -c
  -g -O2 -gtoggle -DIN_GCC -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common 
-DHAVE_CONFIG_H -DGENERATOR_FILE -fno-PIE -I. -Ibuild -I../../src/gcc
-I../../src/gcc/build -I../../src/gcc/../include 
-I../../src/gcc/../libcpp/include  \
-o build/genemit.o ../../src/gcc/genemit.c
/«PKGBUILDDIR»/build/./prev-gcc/xg++ -B/«PKGBUILDDIR»/build/./prev-gcc/
-B/usr/lib/gcc-snapshot/arm-linux-gnueabihf/bin/ -nostdinc++
-B/«PKGBUILDDIR»/build/prev-arm-linux-gnueabihf/libstdc++-v3/src/.libs
-B/«PKGBUILDDIR»/build/prev-arm-linux-gnue

[Bug c++/71728] [5/6/7 Regression] ICE with goto in statement-expression inside a condition

2016-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71728

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2

[Bug fortran/71723] [4.9/5/6/7 Regression] ICE with attempted pointer initialization

2016-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71723

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P4

[Bug bootstrap/70997] [7 Regression] bootstrap broken on s390x-linux-gnu

2016-07-08 Thread doko at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70997

Matthias Klose  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |WORKSFORME

--- Comment #2 from Matthias Klose  ---
apparently this works again with 20160707.

[Bug c++/71718] [6/7 Regression] ICE on erroneous recursive template error printing

2016-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71718

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2

[Bug fortran/71706] [6/7 Regression] ICE on using sync images with integer(kind<>4), with -fcoarray=lib -fcheck=bounds

2016-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71706

Richard Biener  changed:

   What|Removed |Added

   Keywords||ice-checking,
   ||ice-on-valid-code
   Priority|P3  |P4

[Bug c++/71711] [6/7 Regression] ICE on valid C++1z code with fold expression: tree check: expected tree_vec, have expr_pack_expansion in tsubst_unary_left_fold, at cp/pt.c:10792

2016-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71711

Richard Biener  changed:

   What|Removed |Added

   Keywords||ice-on-valid-code
   Priority|P3  |P2

[Bug fortran/71703] [4.9/5/6/7 Regression] ICE in wide_int_to_tree, at tree.c:1488

2016-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71703

Richard Biener  changed:

   What|Removed |Added

   Keywords||ice-on-valid-code
   Priority|P3  |P4

[Bug tree-optimization/71691] [6/7 Regression] wrong code at -O3 in both 32-bit and 64-bit modes on x86_64-linux-gnu (Floating point exception)

2016-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71691

Richard Biener  changed:

   What|Removed |Added

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

[Bug bootstrap/71816] [7 Regression] bootstrap broken on armhf-linux-gnuabihf

2016-07-08 Thread doko at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71816

Matthias Klose  changed:

   What|Removed |Added

 Target|arm-linux-gnueabihf |arm-linux-gnueabihf,
   ||powerpc-linux-gnu

--- Comment #1 from Matthias Klose  ---
same on powerpc-linux-gnu

original build logs:

https://buildd.debian.org/status/fetch.php?pkg=gcc-snapshot&arch=armhf&ver=20160707-1&stamp=1467931534
https://buildd.debian.org/status/fetch.php?pkg=gcc-snapshot&arch=powerpc&ver=20160707-1&stamp=1467918813

https://launchpadlibrarian.net/271543215/buildlog_ubuntu-yakkety-powerpc.gcc-snapshot_20160707-1ubuntu1_BUILDING.txt.gz
https://launchpad.net/ubuntu/+source/gcc-snapshot/20160707-1ubuntu1/+build/10431592/+files/buildlog_ubuntu-yakkety-armhf.gcc-snapshot_20160707-1ubuntu1_BUILDING.txt.gz

[Bug c++/71665] [4.9/5/6/7 Regression] ICE on invalid C++ code with non-integral constant enumerator value: in cxx_eval_constant_expression, at cp/constexpr.c:3918

2016-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71665

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2

[Bug c++/71662] [4.9/5/6/7 Regression] ICE on invalid C++11 code with unqualified name look up: in tsubst_copy, at cp/pt.c:14010

2016-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71662

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2

[Bug debug/71667] [7 Regression] ICE in as_a, at is-a.h:192 w/ -g -O2 -ftree-vectorize

2016-07-08 Thread alahay01 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71667

--- Comment #6 from alahay01 at gcc dot gnu.org ---
Author: alahay01
Date: Fri Jul  8 08:50:24 2016
New Revision: 238160

URL: https://gcc.gnu.org/viewcvs?rev=238160&root=gcc&view=rev
Log:
2016-07-08  Alan Hayward  

gcc/
PR tree-optimization/71667
* tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts

testsuite/
PR tree-optimization/71667
* gcc.dg/vect/pr71667.c: New


Added:
trunk/gcc/testsuite/gcc.dg/vect/pr71667.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-vect-loop.c

[Bug libstdc++/71660] [5/6/7 regression] alignment of std::atomic<8 byte primitive type> (long long, double) is wrong on x86

2016-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71660

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2

[Bug ada/71817] New: gcc/ada/adaint.c: 2 * Suspicious condition

2016-07-08 Thread dcb314 at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71817

Bug ID: 71817
   Summary: gcc/ada/adaint.c: 2 * Suspicious condition
   Product: gcc
   Version: 7.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: ada
  Assignee: unassigned at gcc dot gnu.org
  Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

1.

trunk/gcc/ada/adaint.c:1927]: (style) Suspicious condition (assignment +
comparison); Clarify expression with parentheses.

Source code is

  if (fd = open (name, O_RDONLY, 0) < 0)
 return 0;

2.

trunk/gcc/ada/adaint.c:2000]: (style) Suspicious condition (assignment +
comparison); Clarify expression with parentheses.

Duplicate.

[Bug middle-end/71654] [6/7 Regression] missing VRP optimization on c++ unsigned char and short expressions

2016-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71654

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2

[Bug middle-end/71654] [6/7 Regression] missing VRP optimization on c++ unsigned char and short expressions

2016-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71654

--- Comment #3 from Richard Biener  ---
The regression is because in GCC 5 we shorten the (int) i <= 3 compare
early during FE folding while it survives as integer compare in GCC 6.
This makes (int) i redundant in the conditional block.

[Bug c++/71638] [6/7 Regression] ICE on invalid C++ code on x86_64-linux-gnu with -Wall (internal compiler error: non-constant element in constant CONSTRUCTOR)

2016-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71638

Richard Biener  changed:

   What|Removed |Added

   Keywords||ice-on-invalid-code
   Priority|P3  |P4

[Bug c++/71630] [5/6/7 Regression] ICE on valid C++14 code with variable templates: in get, at cgraph.h:395

2016-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71630

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2

[Bug ipa/71624] [6 regression][CHKP] internal compiler error: in duplicate_thunk_for_node

2016-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71624

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2
  Known to work||7.0
Summary|[6/7 regression][CHKP]  |[6 regression][CHKP]
   |internal compiler error: in |internal compiler error: in
   |duplicate_thunk_for_node|duplicate_thunk_for_node
  Known to fail|7.0 |

--- Comment #3 from Richard Biener  ---
fixed on trunk

[Bug middle-end/71606] [4.9/5/6 Regression] ICE on -O2 and above on x86_64-linux-gnu (internal compiler error: in get_expr_operands, at tree-ssa-operands.c:882)

2016-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71606

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2

[Bug target/71607] [5/6/7 Regression] [ARM] ice due to forbidden enabled attribute dependency on instruction operands

2016-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71607

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2

[Bug c/71602] [6/7 regression] ICE on __builtin_va_arg in build_va_arg, at c-family/c-common.c:5810

2016-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71602

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2

[Bug c++/71604] [6/7 Regression] ICE on valid C++11 code with range-based for loop: in pop_binding, at cp/name-lookup.c:376

2016-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71604

Richard Biener  changed:

   What|Removed |Added

   Keywords||ice-on-valid-code
   Priority|P3  |P2

[Bug c++/71576] [4.9/5/6/7 Regression] ICE on valid C++11 code (with xvalue and bitfield) on x86_64-linux-gnu: in build_target_expr, at cp/tree.c:385

2016-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71576

Richard Biener  changed:

   What|Removed |Added

   Keywords||ice-on-valid-code
   Priority|P3  |P2

[Bug c++/71577] [6/7 regression] ICE on invalid C++11 code (with extra struct initializer) on x86_64-linux-gnu: in digest_init_r, at cp/typeck2.c:1117

2016-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71577

Richard Biener  changed:

   What|Removed |Added

   Keywords||error-recovery
   Priority|P3  |P4

[Bug tree-optimization/71575] [4.9/6/7 Regression] [graphite] internal compiler error: in copy_cond_phi_nodes, at graphite-isl-ast-to-gimple.c:2500

2016-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71575

Richard Biener  changed:

   What|Removed |Added

   Keywords||ice-on-valid-code
   Priority|P3  |P2

[Bug c++/71570] [6/7 regression] ICE on invalid variable capture in cxx_incomplete_type_diagnostic, at cp/typeck2.c:551

2016-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71570

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P4

[Bug c++/71569] [5/6/7 regression] Crash: External definition of template member from template struct

2016-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71569

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2

[Bug tree-optimization/71563] [6/7 Regression] Regression in GCC-7.0.0's optimizer.

2016-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71563

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2

[Bug c++/71561] [5/6/7 Regression] ICE with -Wall on valid C++ code on x86_64-linux-gnu: in potential_constant_expression_1, at cp/constexpr.c:5249

2016-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71561

Richard Biener  changed:

   What|Removed |Added

   Keywords||ice-on-valid-code
   Priority|P3  |P2

[Bug tree-optimization/71518] [6 Regression] wrong code at -O3 on x86_64-linux-gnu in 64-bit mode (not in 32-bit mode)

2016-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71518

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2
  Known to work||7.0
Summary|[6/7 Regression] wrong code |[6 Regression] wrong code
   |at -O3 on x86_64-linux-gnu  |at -O3 on x86_64-linux-gnu
   |in 64-bit mode (not in  |in 64-bit mode (not in
   |32-bit mode)|32-bit mode)
  Known to fail||6.1.0

[Bug c++/71515] [4.9/5/6/7 Regression] ICE on valid C++ code on x86_64-linux-gnu: Segmentation fault (program cc1plus)

2016-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71515

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2

[Bug c++/71513] [6/7 Regression] ICE on valid C++11 code (with alignas specifier) on x86_64-linux-gnu: Segmentation fault

2016-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71513

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2

[Bug c++/71511] [6/7 Regression] ICE on valid C++11 code (with decltype) on x86_64-linux-gnu: in cxx_incomplete_type_diagnostic, at cp/typeck2.c:567

2016-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71511

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2

[Bug fortran/71745] upper array bound huge(i) on 32-bit systems

2016-07-08 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71745

Dominique d'Humieres  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2016-07-08
 Ever confirmed|0   |1

--- Comment #2 from Dominique d'Humieres  ---
Confirmed from 4.8 up to trunk (7.0).

[Bug c/71812] gcc6/c++/functional:1726:40: internal compiler error: in assign_temp, at function.c:961

2016-07-08 Thread noloader at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71812

--- Comment #4 from Jeffrey Walton  ---
(In reply to Richard Biener from comment #3)
> Duplicate of PR71811?

Yes, it looks like a duplicate.

GCC's bug tracker search feature absolutely sucks. Did Microsoft provide it
free of charge?

[Bug bootstrap/71816] [7 Regression] bootstrap broken on armhf-linux-gnuabihf

2016-07-08 Thread ktkachov at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71816

ktkachov at gcc dot gnu.org changed:

   What|Removed |Added

   Keywords||build
   Priority|P3  |P1
 Status|UNCONFIRMED |NEW
   Last reconfirmed||2016-07-08
 CC||ktkachov at gcc dot gnu.org
   Target Milestone|--- |7.0
 Ever confirmed|0   |1

--- Comment #2 from ktkachov at gcc dot gnu.org ---
Confirmed on arm-none-linux-gnueabihf

[Bug tree-optimization/71818] New: [7 Regression] ICE in as_a, at is-a.h:192 w/ -O2 -ftree-vectorize

2016-07-08 Thread alahay01 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71818

Bug ID: 71818
   Summary: [7 Regression] ICE in as_a, at is-a.h:192 w/ -O2
-ftree-vectorize
   Product: gcc
   Version: 7.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: tree-optimization
  Assignee: unassigned at gcc dot gnu.org
  Reporter: alahay01 at gcc dot gnu.org
  Target Milestone: ---

This bug is for the regression found by Qirun Zhang here:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71667#c4

Splitting out from PR 71667 because it is a different issue.

The bug is caused because one for the uses of the live statement is neither a
phi nor a debug statement.

[Bug c/71812] gcc6/c++/functional:1726:40: internal compiler error: in assign_temp, at function.c:961

2016-07-08 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71812

--- Comment #5 from Jakub Jelinek  ---
I can't reproduce the ICE on x86_64-linux with the preprocessed source you've
provided.  That said, it could be dup of PR71210 which has been fixed 1.5
months ago.

[Bug debug/71667] [7 Regression] ICE in as_a, at is-a.h:192 w/ -g -O2 -ftree-vectorize

2016-07-08 Thread alahay01 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71667

alahay01 at gcc dot gnu.org changed:

   What|Removed |Added

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

--- Comment #7 from alahay01 at gcc dot gnu.org ---
Fixed.

Additional issue found by Qirun has been raised as PR 71818

[Bug c/71812] gcc6/c++/functional:1726:40: internal compiler error: in assign_temp, at function.c:961

2016-07-08 Thread noloader at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71812

--- Comment #6 from Jeffrey Walton  ---
(In reply to Richard Biener from comment #3)
> Duplicate of PR71811?

My bad... That's the same bug report.

When attempting to include the preprocessed source file in the original report,
I kept getting "Gateway Timeout" errors. Apparently one of them got enough
processing to create the report before the error was reported.

Jelinek's potential dup at http://gcc.gnu.org/bugzilla/show_bug.cgi?id=71210
appears to be the duplicate.

[Bug libstdc++/71809] compile llvm3.8.0 failed by the libstdc++ of gcc6.1.0

2016-07-08 Thread sulitsrc at 163 dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71809

--- Comment #4 from sulit  ---
ok

[Bug tree-optimization/50417] regression: memcpy with known alignment

2016-07-08 Thread npl at chello dot at
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417

npl at chello dot at changed:

   What|Removed |Added

 CC||npl at chello dot at

--- Comment #7 from npl at chello dot at ---
This seems to affect even the most trivial cases. I ran the following code witn
arm gcc 4.8.4, 4.9.2 and 5.3.0:

#include 
#include 

uint32_t foo_noalign(const uint32_t *s) {
uint32_t v;
memcpy(&v, s, sizeof(v));
return v;
}

uint32_t foo(const uint32_t *s) {
uint32_t v;
memcpy(&v, __builtin_assume_aligned(s, 4), sizeof(v));
return v;
}

Which generates the following code:

 :
   0:   e92d4007push{r0, r1, r2, lr}
   4:   e3a02004mov r2, #4
   8:   e1a01000mov r1, r0
   c:   e08d0002add r0, sp, r2
  10:   ebfebl  0 
  14:   e59d0004ldr r0, [sp, #4]
  18:   e28dd00cadd sp, sp, #12
  1c:   e49de004pop {lr}; (ldr lr, [sp], #4)
  20:   e12fff1ebx  lr

0024 :
  24:   e590ldr r0, [r0]
  28:   e12fff1ebx  lr

Thats really, really bad. clang has no problems generating the optimal code.

[Bug c++/71553] [6 regression]ICE in assign_temp, at function.c:961

2016-07-08 Thread dominik.stras...@onespin-solutions.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71553

--- Comment #5 from dominik.stras...@onespin-solutions.com ---
Works after applying the patch in my non-reduced test case, too.

Thanks

[Bug tree-optimization/71264] [4.9/5 Regression] ICE in convert_move

2016-07-08 Thread bmei at broadcom dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71264

Bingfeng Mei  changed:

   What|Removed |Added

 CC||bmei at broadcom dot com

--- Comment #15 from Bingfeng Mei  ---
Hi, Richard, I updated to the latest patches. But our target still failed in
the same way as other people reported. footype gets V4QI instead of SI because
we have it supported in vector_mode_supported_p. Thus the following error.

 not vectorized: vector stmt in loop:temp_14 = VIEW_CONVERT_EXPR(_8);

I guess your patch in vect_init_vector is supposed to fix this. But the
execution doesn't even hit vect_init_vector.

[Bug rtl-optimization/69891] wrong code with -mstringop-strategy=libcall @ i686

2016-07-08 Thread zsojka at seznam dot cz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69891

--- Comment #19 from Zdenek Sojka  ---
Target milestone 4.9.4 is not set.

[Bug rtl-optimization/69891] wrong code with -mstringop-strategy=libcall @ i686

2016-07-08 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69891

Jakub Jelinek  changed:

   What|Removed |Added

   Target Milestone|--- |4.9.4

[Bug tree-optimization/50417] regression: memcpy with known alignment

2016-07-08 Thread rguenther at suse dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417

--- Comment #8 from rguenther at suse dot de  ---
On Fri, 8 Jul 2016, npl at chello dot at wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417
> 
> npl at chello dot at changed:
> 
>What|Removed |Added
> 
>  CC||npl at chello dot at
> 
> --- Comment #7 from npl at chello dot at ---
> This seems to affect even the most trivial cases. I ran the following code 
> witn
> arm gcc 4.8.4, 4.9.2 and 5.3.0:
> 
> #include 
> #include 
> 
> uint32_t foo_noalign(const uint32_t *s) {
> uint32_t v;
> memcpy(&v, s, sizeof(v));
> return v;
> }
> 
> uint32_t foo(const uint32_t *s) {
> uint32_t v;
> memcpy(&v, __builtin_assume_aligned(s, 4), sizeof(v));
> return v;
> }
> 
> Which generates the following code:
> 
>  :
>0:   e92d4007push{r0, r1, r2, lr}
>4:   e3a02004mov r2, #4
>8:   e1a01000mov r1, r0
>c:   e08d0002add r0, sp, r2
>   10:   ebfebl  0 
>   14:   e59d0004ldr r0, [sp, #4]
>   18:   e28dd00cadd sp, sp, #12
>   1c:   e49de004pop {lr}; (ldr lr, [sp], #4)
>   20:   e12fff1ebx  lr
> 
> 0024 :
>   24:   e590ldr r0, [r0]
>   28:   e12fff1ebx  lr
> 
> Thats really, really bad. clang has no problems generating the optimal code.

But there is no good reasoning that can be applied that it is a valid
transform.  What does clang do when s is void * and you cast that to
uint32_t *?  Note that memcpy prototype takes a void * argument.

[Bug tree-optimization/71264] [4.9/5 Regression] ICE in convert_move

2016-07-08 Thread rguenther at suse dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71264

--- Comment #16 from rguenther at suse dot de  ---
On Fri, 8 Jul 2016, bmei at broadcom dot com wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71264
> 
> Bingfeng Mei  changed:
> 
>What|Removed |Added
> 
>  CC||bmei at broadcom dot com
> 
> --- Comment #15 from Bingfeng Mei  ---
> Hi, Richard, I updated to the latest patches. But our target still failed in
> the same way as other people reported. footype gets V4QI instead of SI because
> we have it supported in vector_mode_supported_p. Thus the following error.
> 
>  not vectorized: vector stmt in loop:temp_14 = VIEW_CONVERT_EXPR(_8);
> 
> I guess your patch in vect_init_vector is supposed to fix this. But the
> execution doesn't even hit vect_init_vector.

The patch wasn't supposed to make this case vectorized but fix the ICE.
On targets where the vector mode is not supported it happens to also
vectorize it.

Making the vectorizer deal with existing vector types is a much harder
task (I tried for a few hours but failed, there are too many rough
spots to fix)

[Bug tree-optimization/71264] [4.9/5 Regression] ICE in convert_move

2016-07-08 Thread bmei at broadcom dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71264

--- Comment #17 from Bingfeng Mei  ---
OK, I will skip the vectorization check on our port then. Thanks.

[Bug c++/71495] [6/7 Regression] Spurious "note: initializing argument ... of ..." without any warning/error

2016-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71495

Richard Biener  changed:

   What|Removed |Added

   Keywords||easyhack
   Priority|P3  |P2

[Bug middle-end/71473] [5/6/7 Regression] cilkplus sum reducer ICE

2016-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71473

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2

[Bug c++/71463] [6/7 regression] unexpected warning: ignoring function return attributes on template argument

2016-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71463

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2

[Bug rtl-optimization/71374] [5/6/7 Regression] ICE on valid code at -O1 and above on x86_64-linux-gnu: in extract_constrain_insn, at recog.c:2190

2016-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71374

Richard Biener  changed:

   What|Removed |Added

   Keywords||ice-on-valid-code
   Priority|P3  |P2

[Bug c++/71350] [4.9/5/6/7 regression] ICE on trailing return type declaration with initializer list

2016-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71350

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2

[Bug target/71342] [6/7 Regression][RL78] set1 / clr1 with !addr16 sometimes doesn't work

2016-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71342

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P4

[Bug target/71321] [6/7 Regression] x86: worse code for uint8_t % 10 and / 10

2016-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71321

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2

  1   2   >