[Bug fortran/69962] ICE on missing parameter attribute, in gfc_set_constant_character_len

2016-07-02 Thread kargl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69962

--- Comment #3 from kargl at gcc dot gnu.org ---
Index: decl.c
===
--- decl.c  (revision 237945)
+++ decl.c  (working copy)
@@ -1485,10 +1485,14 @@ gfc_set_constant_character_len (int len,
   gfc_char_t *s;
   int slen;

-  gcc_assert (expr->expr_type == EXPR_CONSTANT);
-
   if (expr->ts.type != BT_CHARACTER)
 return;
+ 
+  if (expr->expr_type != EXPR_CONSTANT)
+{
+  gfc_error_now ("CHARACTER length must be a constant at %L",
>where);
+  return;
+}

   slen = expr->value.character.length;
   if (len != slen)

[Bug target/60950] powerpc-e500v2-linux-gnuspe: ICE in extract_insn, at recog.c:2202

2016-07-02 Thread asolokha at gmx dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60950

Arseny Solokha  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |DUPLICATE

--- Comment #3 from Arseny Solokha  ---
PR69810 exposed the same unrecognizable instruction and is already fixed in
trunk for two months by now.

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

[Bug target/69810] PowerPC64: unrecognizable insn

2016-07-02 Thread asolokha at gmx dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69810

Arseny Solokha  changed:

   What|Removed |Added

 CC||asolokha at gmx dot com

--- Comment #11 from Arseny Solokha  ---
*** Bug 60950 has been marked as a duplicate of this bug. ***

[Bug target/65248] Copy relocation against protected symbol doesn't work

2016-07-02 Thread jb999 at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65248

--- Comment #12 from jb999 at gmx dot de ---
Yes, that's why I'm using binutils 2.25.1 to link firefox.

I was just wondering whether binutils >= 2.26 and gcc 4.9.3 might cause harm.

>From what I understand will binutils >= 2.26 with gcc 4.9.3 alert you by
causing a link error whereas binutils < 2.26 will link the way it has been done
for all these years (trusting that neither the shared library nor the
executable updates its copy).

So binutils >= 2.26 isn't broken for older gcc, it's just drawing attention to
a possible problem.

Is that right?

[Bug target/71727] O3 optimization assumes 16byte alignment

2016-07-02 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71727

Andrew Pinski  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2016-07-03
  Component|c   |target
 Ever confirmed|0   |1

--- Comment #2 from Andrew Pinski  ---
Confirmed.
support_vector_misalignment target hook is incorrect when STRICT_ALIGNMENT is
true.

[Bug c/71727] O3 optimization assumes 16byte alignment

2016-07-02 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71727

--- Comment #1 from Andrew Pinski  ---
>unaligned supported by hardware.

This is wrong here.

[Bug fortran/69964] ICE on misspelled end block data, in gfc_ascii_statement

2016-07-02 Thread kargl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69964

--- Comment #2 from kargl at gcc dot gnu.org ---
Index: parse.c
===
--- parse.c (revision 237945)
+++ parse.c (working copy)
@@ -5626,8 +5628,11 @@ parse_block_data (void)

   while (st != ST_END_BLOCK_DATA)
 {
-  gfc_error ("Unexpected %s statement in BLOCK DATA at %C",
-gfc_ascii_statement (st));
+  if (st != ST_NONE)
+   gfc_error ("Unexpected %s statement in BLOCK DATA at %C",
+  gfc_ascii_statement (st));
+  else
+   break;
   reject_statement ();
   st = next_statement ();
 }

[Bug tree-optimization/71726] Simplify (intptr_t)p+4-(intptr_t)(p+4)

2016-07-02 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71726

Andrew Pinski  changed:

   What|Removed |Added

   Severity|normal  |enhancement

[Bug tree-optimization/71595] [7 Regression] ICE on valid code at -O2 and -O3 on x86_64-linux-gnu: in check_loop_closed_ssa_use, at tree-ssa-loop-manip.c:704

2016-07-02 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71595

Andrew Pinski  changed:

   What|Removed |Added

   Target Milestone|--- |7.0

[Bug c++/59498] [DR 1430][4.9/5/6/7 Regression] Pack expansion error in template alias

2016-07-02 Thread pkeir at outlook dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59498

Paul Keir  changed:

   What|Removed |Added

 CC||pkeir at outlook dot com

--- Comment #11 from Paul Keir  ---
Did you find a way to implement quote when given an alias?

[Bug c++/71737] ICE following 2x pack expansion in non-pack with template alias

2016-07-02 Thread pkeir at outlook dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71737

--- Comment #1 from Paul Keir  ---
Created attachment 38820
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38820=edit
Minimal testcase.

[Bug c++/71737] New: ICE following 2x pack expansion in non-pack with template alias

2016-07-02 Thread pkeir at outlook dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71737

Bug ID: 71737
   Summary: ICE following 2x pack expansion in non-pack with
template alias
   Product: gcc
   Version: 7.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
  Assignee: unassigned at gcc dot gnu.org
  Reporter: pkeir at outlook dot com
  Target Milestone: ---

The code below (and attached) produces an ICE with gcc (GCC) 7.0.0 20160608
(experimental) when compiled using g++ with "-c -std=c++11".

template  class TT>
struct quote {
  template 
  using apply = TT;
};

template 
using to_int_t = int;

using t = quote::apply;

[Bug middle-end/70282] cc1plus hangs taking 100% CPU in LLVM's Function.cpp

2016-07-02 Thread tulipawn at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70282

PeteVine  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |WONTFIX

--- Comment #4 from PeteVine  ---
Finally, believe it or not, the CMake build system doesn't suffer from this
bug. Not sure what's changed but at least it no longer reproduces.

[Bug fortran/70006] Duplicate errors "label not defined"

2016-07-02 Thread kargl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70006

--- Comment #7 from kargl at gcc dot gnu.org ---
Index: io.c
===
--- io.c(revision 237945)
+++ io.c(working copy)
@@ -3052,7 +3052,7 @@ gfc_resolve_dt (gfc_dt *dt, locus *loc)
   && dt->format_label->defined == ST_LABEL_UNKNOWN)
 {
   gfc_error ("FORMAT label %d at %L not defined", dt->format_label->value,
->format_label->where);
+loc);
   return false;
 }

Index: resolve.c
===
--- resolve.c   (revision 237945)
+++ resolve.c   (working copy)
@@ -8943,7 +8949,7 @@ resolve_branch (gfc_st_label *label, gfc
   if (label->defined == ST_LABEL_UNKNOWN)
 {
   gfc_error ("Label %d referenced at %L is never defined", label->value,
->where);
+>loc);
   return;
 }

[Bug target/71733] ICE in vmx test cases with -mcpu=power9

2016-07-02 Thread bergner at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71733

--- Comment #5 from Peter Bergner  ---
This patch bootstrapped and regtested with no regressions.  I'll submit it when
I get back from the long holiday weekend.

[Bug target/71733] ICE in vmx test cases with -mcpu=power9

2016-07-02 Thread bergner at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71733

--- Comment #4 from Peter Bergner  ---
Aaron, the following patch seems to fix the problem for me.  Can you give this
a try?
I'm currently bootstraapping and regtesting it.


Index: gcc/config/rs6000/rs6000.c
===
--- gcc/config/rs6000/rs6000.c  (revision 237929)
+++ gcc/config/rs6000/rs6000.c  (working copy)
@@ -4303,7 +4303,8 @@ rs6000_option_override_internal (bool gl
 {
   if (rs6000_isa_flags_explicit & OPTION_MASK_P8_VECTOR)
error ("-mpower9-vector requires -mpower8-vector");
-  rs6000_isa_flags &= ~OPTION_MASK_P9_VECTOR;
+  rs6000_isa_flags &= ~(OPTION_MASK_P9_VECTOR
+   | OPTION_MASK_P9_DFORM_VECTOR);
 }

   /* There have been bugs with -mvsx-timode that don't show up with -mlra,

[Bug target/71733] ICE in vmx test cases with -mcpu=power9

2016-07-02 Thread bergner at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71733

--- Comment #3 from Peter Bergner  ---
Confirmed, we're not disabling TARGET_P9_DFORM_VECTOR when we disable vsx.

(gdb) p TARGET_VSX
$14 = false
(gdb) p TARGET_P9_VECTOR
$15 = false
(gdb) p TARGET_P9_DFORM_SCALAR
$16 = false
(gdb) p TARGET_P9_DFORM_VECTOR
$17 = true

[Bug fortran/68566] ICE on using unusable array in reshape (double free or corruption)

2016-07-02 Thread jvdelisle at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68566

Jerry DeLisle  changed:

   What|Removed |Added

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

--- Comment #14 from Jerry DeLisle  ---
Taking this

[Bug target/71733] ICE in vmx test cases with -mcpu=power9

2016-07-02 Thread bergner at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71733

Peter Bergner  changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2016-07-02
   Assignee|unassigned at gcc dot gnu.org  |bergner at gcc dot 
gnu.org
   Target Milestone|--- |7.0
 Ever confirmed|0   |1

--- Comment #2 from Peter Bergner  ---
Confirmed.  Here's a minimal test case.  With -mno-vsx, we should be disabling
direct move, which we don't seem to be doing.


bergner@genoa:~/gcc/BUGS/sawdey/altivec$ cat bug.i 
typedef __attribute__((altivec(vector__))) unsigned char vec_t;
vec_t
foo (vec_t src)
{
  return src;
}
bergner@genoa:~/gcc/BUGS/sawdey/altivec$
/home/bergner/gcc/build/gcc-fsf-mainline-debug/gcc/xgcc
-B/home/bergner/gcc/build/gcc-fsf-mainline-debug/gcc/ -O0 -mcpu=power9 -mno-vsx
-S bug.i 
bug.i: In function ‘foo’:
bug.i:6:1: error: insn does not satisfy its constraints:
 }
 ^
(insn 18 24 30 (set (mem/c:V16QI (plus:DI (reg/f:DI 31 31)
(const_int 48 [0x30])) [0  S16 A128])
(reg:V16QI 79 2 [ src ])) bug.i:4 1205 {*altivec_movv16qi}
 (nil))
bug.i:6:1: internal compiler error: in extract_constrain_insn_cached, at
recog.c:2223
0x10c46563 _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
/home/bergner/gcc/gcc-fsf-mainline-base/gcc/rtl-error.c:108
0x10c465ff _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
/home/bergner/gcc/gcc-fsf-mainline-base/gcc/rtl-error.c:119
0x10bc9e1f extract_constrain_insn_cached(rtx_insn*)
/home/bergner/gcc/gcc-fsf-mainline-base/gcc/recog.c:2223
0x114b259f insn_default_length(rtx_insn*)
   
/home/bergner/gcc/gcc-fsf-mainline-base/gcc/config/rs6000/rs6000.md:6424
0x1073866f shorten_branches(rtx_insn*)
/home/bergner/gcc/gcc-fsf-mainline-base/gcc/final.c:1184
0x10741eff rest_of_handle_shorten_branches
/home/bergner/gcc/gcc-fsf-mainline-base/gcc/final.c:4537
0x10741fbf execute
/home/bergner/gcc/gcc-fsf-mainline-base/gcc/final.c:4566

[Bug middle-end/70159] missed CSE optimization

2016-07-02 Thread hiraditya at msn dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70159

AK  changed:

   What|Removed |Added

 CC||hiraditya at msn dot com

--- Comment #11 from AK  ---
Just as an update, the new gvn-hoist pass in llvm hoists the common
computations:

@cat test.c
float foo_p(float d, float min, float max, float a)
{
  float tmin;
  float tmax;

  float inv = 1.0f / d;
  if (inv >= 0) {
tmin = (min - a) * inv;
tmax = (max - a) * inv;
  } else {
tmin = (max - a) * inv;
tmax = (min - a) * inv;
  }

  return tmax + tmin;
}


clang -c -Ofast test.c -mllvm -print-after-all


*** IR Dump Before Early GVN Hoisting of Expressions ***
; Function Attrs: nounwind uwtable
define float @_Z5foo_p(float %d, float %min, float %max, float %a) #0 {
entry:
  %div = fdiv fast float 1.00e+00, %d
  %cmp = fcmp fast oge float %div, 0.00e+00
  br i1 %cmp, label %if.then, label %if.else

if.then:  ; preds = %entry
  %sub = fsub fast float %min, %a
  %mul = fmul fast float %sub, %div
  %sub1 = fsub fast float %max, %a
  %mul2 = fmul fast float %sub1, %div
  br label %if.end

if.else:  ; preds = %entry
  %sub3 = fsub fast float %max, %a
  %mul4 = fmul fast float %sub3, %div
  %sub5 = fsub fast float %min, %a
  %mul6 = fmul fast float %sub5, %div
  br label %if.end

if.end:   ; preds = %if.else, %if.then
  %tmax.0 = phi float [ %mul2, %if.then ], [ %mul6, %if.else ]
  %tmin.0 = phi float [ %mul, %if.then ], [ %mul4, %if.else ]
  %add = fadd fast float %tmax.0, %tmin.0
  ret float %add
}


*** IR Dump After Early GVN Hoisting of Expressions ***
; Function Attrs: nounwind uwtable
define float @_Z5foo_p(float %d, float %min, float %max, float %a) #0 {
entry:
  %div = fdiv fast float 1.00e+00, %d
  %cmp = fcmp fast oge float %div, 0.00e+00
  %sub = fsub fast float %min, %a
  %mul = fmul fast float %sub, %div
  %sub1 = fsub fast float %max, %a
  %mul2 = fmul fast float %sub1, %div
  br i1 %cmp, label %if.then, label %if.else

if.then:  ; preds = %entry
  br label %if.end

if.else:  ; preds = %entry
  br label %if.end

if.end:   ; preds = %if.else, %if.then
  %tmax.0 = phi float [ %mul2, %if.then ], [ %mul, %if.else ]
  %tmin.0 = phi float [ %mul, %if.then ], [ %mul2, %if.else ]
  %add = fadd fast float %tmax.0, %tmin.0
  ret float %add
}

[Bug target/71722] incorrect code for test pr64252.c for -mcpu=power9 -mpower9-vector -ftree-vectorize -O3

2016-07-02 Thread wschmidt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71722

--- Comment #4 from Bill Schmidt  ---
Another possibility is all the vperm instructions, as this is little endian and
we might expect to see vpermr on occasion.  That's hard to tell without digging
deeper.

[Bug c/70339] Poor message for "singed" vs "signed" typo

2016-07-02 Thread sch...@linux-m68k.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70339

--- Comment #4 from Andreas Schwab  ---
On powerpc:

/daten/gcc/gcc-20160701/gcc/testsuite/gcc.dg/diagnostic-token-ranges.c: In
function 'unknown_type_name':
/daten/gcc/gcc-20160701/gcc/testsuite/gcc.dg/diagnostic-token-ranges.c:21:3:
error: unknown type name 'foo'; did you mean 'bool'?
   foo bar; /* { dg-error "unknown type name 'foo'" } */
   ^~~
   bool

FAIL: gcc.dg/diagnostic-token-ranges.c (test for excess errors)
Excess errors:
   bool

[Bug tree-optimization/71736] ICE in verify_ssa

2016-07-02 Thread bernd.edlinger at hotmail dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71736

--- Comment #4 from Bernd Edlinger  ---
gcc -c min.c
min.c: In function 'signal_handler':
min.c:28:36: warning: implicit declaration of function 'bb_error_msg_and_die'
[-Wimplicit-function-declaration]
 ).__i))) & 0x7f) + 1) >> 1) > 0) ) bb_error_msg_and_die("helper killed by
signal %u", (((__extension__ (((union {
^~~~
min.c:45:25: warning: implicit declaration of function 'vfork'; did you mean
'fork'? [-Wimplicit-function-declaration]
  pid_t bb__xvfork_pid = vfork();
 ^
 fork
min.c:49:2: error: definition in block 6 does not dominate use in block 7
  }
  ^
for SSA_NAME: ptr_to_globals.0_11 in statement:
# .MEM_25 = VDEF <.MEM_22>
ptr_to_globals.0_11->helper_pid = _24;
min.c:49:2: internal compiler error: verify_ssa failed
0xd792cc verify_ssa(bool, bool)
../../gcc-trunk/gcc/tree-ssa.c:1039
0xaa24ed execute_function_todo
../../gcc-trunk/gcc/passes.c:1971
0xaa34eb execute_todo
../../gcc-trunk/gcc/passes.c:2016
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See  for instructions.

[Bug tree-optimization/71736] ICE in verify_ssa

2016-07-02 Thread bernd.edlinger at hotmail dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71736

--- Comment #3 from Bernd Edlinger  ---
Created attachment 38819
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38819=edit
delta-reduced test case

[Bug tree-optimization/71736] ICE in verify_ssa

2016-07-02 Thread bernd.edlinger at hotmail dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71736

--- Comment #2 from Bernd Edlinger  ---
Created attachment 38818
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38818=edit
preprocessed source code

[Bug tree-optimization/71736] ICE in verify_ssa

2016-07-02 Thread bernd.edlinger at hotmail dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71736

--- Comment #1 from Bernd Edlinger  ---
full command line was:
gcc -Wp,-MD,mailutils/.mail.o.d   -std=gnu99 -Iinclude -Ilibbb  -include
include/autoconf.h -D_GNU_SOURCE -DNDEBUG -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D"BB_VER=KBUILD_STR(1.24.2)"
-DBB_BT=AUTOCONF_TIMESTAMP  -Wall -Wshadow -Wwrite-strings -Wundef
-Wstrict-prototypes -Wunused -Wunused-parameter -Wunused-function
-Wunused-value -Wmissing-prototypes -Wmissing-declarations -Wno-format-security
-Wdeclaration-after-statement -Wold-style-definition -fno-builtin-strlen
-finline-limit=0 -fomit-frame-pointer -ffunction-sections -fdata-sections
-fno-guess-branch-probability -funsigned-char -static-libgcc
-falign-functions=1 -falign-jumps=1 -falign-labels=1 -falign-loops=1
-fno-unwind-tables -fno-asynchronous-unwind-tables -fno-builtin-printf -Os
-D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(mail)" 
-D"KBUILD_MODNAME=KBUILD_STR(mail)" -c -o mailutils/mail.o mailutils/mail.c

[Bug tree-optimization/71736] New: ICE in verify_ssa

2016-07-02 Thread bernd.edlinger at hotmail dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71736

Bug ID: 71736
   Summary: ICE in verify_ssa
   Product: gcc
   Version: 7.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: tree-optimization
  Assignee: unassigned at gcc dot gnu.org
  Reporter: bernd.edlinger at hotmail dot de
  Target Milestone: ---

Hi,

when building the latest stable busybox version 2.24.2
there is an ICE in verify_ssa:
make defconfig
make
  CC  mailutils/mail.o
mailutils/mail.c: In function 'launch_helper':
mailutils/mail.c:183:1: error: definition in block 5 does not dominate use in
block 9
 }
 ^
for SSA_NAME: ptr_to_globals.0_2 in statement:
# .MEM_26 = VDEF <.MEM_22>
ptr_to_globals.0_2->helper_pid = _25;
mailutils/mail.c:183:1: internal compiler error: verify_ssa failed
0xd792cc verify_ssa(bool, bool)
../../gcc-trunk/gcc/tree-ssa.c:1039
0xaa24ed execute_function_todo
../../gcc-trunk/gcc/passes.c:1971
0xaa34eb execute_todo
../../gcc-trunk/gcc/passes.c:2016
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See  for instructions.
make[1]: *** [mailutils/mail.o] Error 1
make: *** [mailutils] Error 2

[Bug fortran/71687] ICE in omp_add_variable, at gimplify.c:5821

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

--- Comment #5 from Jakub Jelinek  ---
Author: jakub
Date: Sat Jul  2 10:25:52 2016
New Revision: 237944

URL: https://gcc.gnu.org/viewcvs?rev=237944=gcc=rev
Log:
Backported from mainline
2016-07-01  Jakub Jelinek  

PR fortran/71687
* f95-lang.c (struct binding_level): Add reversed field.
(clear_binding_level): Adjust initializer.
(getdecls): If reversed is clear, set it and nreverse the names
chain before returning it.
(poplevel): Use getdecls.
* trans-decl.c (gfc_generate_function_code, gfc_process_block_locals):
Use nreverse to pushdecl decls in the declaration order.

* gfortran.dg/gomp/pr71687.f90: New test.

Added:
branches/gcc-6-branch/gcc/testsuite/gfortran.dg/gomp/pr71687.f90
Modified:
branches/gcc-6-branch/gcc/fortran/ChangeLog
branches/gcc-6-branch/gcc/fortran/f95-lang.c
branches/gcc-6-branch/gcc/fortran/trans-decl.c
branches/gcc-6-branch/gcc/testsuite/ChangeLog

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

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

--- Comment #3 from Jakub Jelinek  ---
Author: jakub
Date: Sat Jul  2 10:24:41 2016
New Revision: 237943

URL: https://gcc.gnu.org/viewcvs?rev=237943=gcc=rev
Log:
Backported from mainline
2016-07-01  Jakub Jelinek  

PR fortran/71717
* trans-openmp.c (gfc_omp_privatize_by_reference): Return false
for GFC_DECL_ASSOCIATE_VAR_P with POINTER_TYPE.

* testsuite/libgomp.fortran/associate3.f90: New test.

Added:
branches/gcc-6-branch/libgomp/testsuite/libgomp.fortran/associate3.f90
Modified:
branches/gcc-6-branch/gcc/fortran/ChangeLog
branches/gcc-6-branch/gcc/fortran/trans-openmp.c
branches/gcc-6-branch/libgomp/ChangeLog

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

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

--- Comment #4 from Jakub Jelinek  ---
Author: jakub
Date: Sat Jul  2 10:23:45 2016
New Revision: 237942

URL: https://gcc.gnu.org/viewcvs?rev=237942=gcc=rev
Log:
Backported from mainline
2016-06-30  Jakub Jelinek  

PR fortran/71704
* parse.c (matchs, matcho): Move right before decode_omp_directive.
If spec_only, only gfc_match the keyword and if successful, goto
do_spec_only.
(matchds, matchdo): Define.
(decode_omp_directive): Add spec_only local var and set it.
Use matchds or matchdo macros instead of matchs or matcho
for declare target, declare simd, declare reduction and threadprivate
directives.  Return ST_GET_FCN_CHARACTERISTICS if a non-declarative
directive could be matched.
(next_statement): For ST_GET_FCN_CHARACTERISTICS restore
gfc_current_locus from old_locus even if there is no label.

* gfortran.dg/gomp/pr71704.f90: New test.

Added:
branches/gcc-6-branch/gcc/testsuite/gfortran.dg/gomp/pr71704.f90
Modified:
branches/gcc-6-branch/gcc/fortran/ChangeLog
branches/gcc-6-branch/gcc/fortran/parse.c
branches/gcc-6-branch/gcc/testsuite/ChangeLog

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

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

--- Comment #5 from Jakub Jelinek  ---
Author: jakub
Date: Sat Jul  2 10:22:48 2016
New Revision: 237941

URL: https://gcc.gnu.org/viewcvs?rev=237941=gcc=rev
Log:
Backported from mainline
2016-06-30  Jakub Jelinek  

PR fortran/71705
* trans-openmp.c (gfc_trans_omp_clauses): Set TREE_ADDRESSABLE on
decls in to/from clauses.

* gfortran.dg/gomp/pr71705.f90: New test.

Added:
branches/gcc-6-branch/gcc/testsuite/gfortran.dg/gomp/pr71705.f90
Modified:
branches/gcc-6-branch/gcc/fortran/ChangeLog
branches/gcc-6-branch/gcc/fortran/trans-openmp.c
branches/gcc-6-branch/gcc/testsuite/ChangeLog

[Bug c/71685] [6 Regression] Segmentation fault in gcc when compiling the attached file.

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

--- Comment #8 from Jakub Jelinek  ---
Author: jakub
Date: Sat Jul  2 10:22:11 2016
New Revision: 237940

URL: https://gcc.gnu.org/viewcvs?rev=237940=gcc=rev
Log:
Backported from mainline
2016-06-29  Jakub Jelinek  

PR c/71685
* c-typeck.c (c_build_qualified_type): Don't clear
C_TYPE_INCOMPLETE_VARS for the main variant.

* gcc.dg/pr71685.c: New test.

Added:
branches/gcc-6-branch/gcc/testsuite/gcc.dg/pr71685.c
Modified:
branches/gcc-6-branch/gcc/c/ChangeLog
branches/gcc-6-branch/gcc/c/c-typeck.c
branches/gcc-6-branch/gcc/testsuite/ChangeLog

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

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

--- Comment #6 from Jakub Jelinek  ---
Author: jakub
Date: Sat Jul  2 10:21:24 2016
New Revision: 237939

URL: https://gcc.gnu.org/viewcvs?rev=237939=gcc=rev
Log:
Backported from mainline
2016-06-28  Jakub Jelinek  

PR middle-end/71626
* config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
a constant, force its SUBREG_REG into memory or register instead
of whole op1.

* gcc.c-torture/execute/pr71626-1.c: New test.
* gcc.c-torture/execute/pr71626-2.c: New test.

Added:
branches/gcc-6-branch/gcc/testsuite/gcc.c-torture/execute/pr71626-1.c
branches/gcc-6-branch/gcc/testsuite/gcc.c-torture/execute/pr71626-2.c
Modified:
branches/gcc-6-branch/gcc/ChangeLog
branches/gcc-6-branch/gcc/config/i386/i386.c
branches/gcc-6-branch/gcc/testsuite/ChangeLog

[Bug target/71559] ICE in ix86_fp_cmp_code_to_pcmp_immediate, at config/i386/i386.c:23042 (KNL/AVX512)

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

--- Comment #20 from Jakub Jelinek  ---
Author: jakub
Date: Sat Jul  2 10:18:27 2016
New Revision: 237938

URL: https://gcc.gnu.org/viewcvs?rev=237938=gcc=rev
Log:
Backported from mainline
2016-06-20  Jakub Jelinek  

PR target/71559
* config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
returned values and add UN*/LTGT/*ORDERED cases with values matching
D operand modifier on vcmp for AVX.

* gcc.target/i386/sse2-pr71559.c: New test.
* gcc.target/i386/avx-pr71559.c: New test.
* gcc.target/i386/avx512f-pr71559.c: New test.

Added:
branches/gcc-6-branch/gcc/testsuite/gcc.target/i386/avx-pr71559.c
branches/gcc-6-branch/gcc/testsuite/gcc.target/i386/avx512f-pr71559.c
branches/gcc-6-branch/gcc/testsuite/gcc.target/i386/sse2-pr71559.c
Modified:
branches/gcc-6-branch/gcc/ChangeLog
branches/gcc-6-branch/gcc/config/i386/i386.c
branches/gcc-6-branch/gcc/testsuite/ChangeLog

[Bug middle-end/71735] arm-linux-gnueabihf-gcc: internal compiler error (cc1plus)

2016-07-02 Thread sch...@linux-m68k.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71735

Andreas Schwab  changed:

   What|Removed |Added

 Resolution|FIXED   |INVALID

[Bug middle-end/71735] arm-linux-gnueabihf-gcc: internal compiler error (cc1plus)

2016-07-02 Thread girard.florian at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71735

Florian  changed:

   What|Removed |Added

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

--- Comment #3 from Florian  ---
Tanks you for your help

I've added a swap file and it works.

You've made my day :)

Florian

[Bug middle-end/71735] arm-linux-gnueabihf-gcc: internal compiler error (cc1plus)

2016-07-02 Thread girard.florian at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71735

--- Comment #2 from Florian  ---
(In reply to Andrew Pinski from comment #1)
> This is most likely out of memory.
> The process is killed by the kernel.

Hi Andrew,

Many thanks

It's more than likely

free -m
 total   used   free sharedbuffers cached
Mem:   353335 18  9  0 17
-/+ buffers/cache:317 35
Swap:0  0  0
osmc@osmc:~$ free -m (then stop)
^[[A
 total   used   free sharedbuffers cached
Mem:   353171182  9  1 44
-/+ buffers/cache:126227
Swap:0  0  0

I'll try to free some memory for the install

[Bug middle-end/71735] arm-linux-gnueabihf-gcc: internal compiler error (cc1plus)

2016-07-02 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71735

Andrew Pinski  changed:

   What|Removed |Added

   Keywords||memory-hog
URL|https://github.com/lexruee/ |
   |pi-switch-python|
  Component|c++ |middle-end
   Host|osmc (rasbian) with |
   |raspberry pi 1  |

--- Comment #1 from Andrew Pinski  ---
This is most likely out of memory.
The process is killed by the kernel.

[Bug c++/71735] New: arm-linux-gnueabihf-gcc: internal compiler error (cc1plus)

2016-07-02 Thread girard.florian at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71735

Bug ID: 71735
   Summary: arm-linux-gnueabihf-gcc: internal compiler error
(cc1plus)
   Product: gcc
   Version: 4.9.2
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
  Assignee: unassigned at gcc dot gnu.org
  Reporter: girard.florian at gmail dot com
  Target Milestone: ---

hello all,

I'm trying to install pi-switch-python on my RPI 1 with the last version of
osmc
https://osmc.tv/download/

https://github.com/lexruee/pi-switch-python
But i got this error:

osmc@osmc:~$ cd pi-switch-python
osmc@osmc:~/pi-switch-python$ sudo python setup.py install
running install
running build
running build_py
running build_ext
building '_pi_switch' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g
-fstack-protector-strong -Wformat -Werror=format-security -fPIC
-I/usr/include/python2.7 -c pi_switch/wrapper/pi_switch.cpp -o
build/temp.linux-armv6l-2.7/pi_switch/wrapper/pi_switch.o -Wno-write-strings
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC
but not for C++
arm-linux-gnueabihf-gcc: internal compiler error: Processus arrêté (program
cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See  for instructions.
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 4
osmc@osmc:~/pi-switch-python$ 


GCC -V

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/4.9/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: ../src/configure -v --with-pkgversion='Raspbian 4.9.2-10'
--with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs
--enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.9 --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib --enable-nls
--with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug
--enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libitm
--disable-libquadmath --enable-plugin --with-system-zlib
--disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-armhf/jre --enable-java-home
--with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-armhf
--with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-armhf
--with-arch-directory=arm --with-ecj-jar=/usr/share/java/eclipse-ecj.jar
--enable-objc-gc --enable-multiarch --disable-sjlj-exceptions --with-arch=armv6
--with-fpu=vfp --with-float=hard --enable-checking=release
--build=arm-linux-gnueabihf --host=arm-linux-gnueabihf
--target=arm-linux-gnueabihf
Thread model: posix
gcc version 4.9.2 (Raspbian 4.9.2-10) 

Let me know if you wanted me to try or do anything else

Thank's you

Florian

[Bug c/71719] [7 Regression] invalid set-but-not-used warning with vectors

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

--- Comment #3 from Jakub Jelinek  ---
Author: jakub
Date: Sat Jul  2 06:41:29 2016
New Revision: 237937

URL: https://gcc.gnu.org/viewcvs?rev=237937=gcc=rev
Log:
PR c/71719
* c-typeck.c (mark_exp_read): Handle VIEW_CONVERT_EXPR.

* c-c++-common/Wunused-var-15.c: New test.

Added:
trunk/gcc/testsuite/c-c++-common/Wunused-var-15.c
Modified:
trunk/gcc/c/ChangeLog
trunk/gcc/c/c-typeck.c
trunk/gcc/testsuite/ChangeLog