[Bug middle-end/81318] [8 regression] ICE in to_reg_br_prob_base, at profile-count.h:189

2017-10-08 Thread daniel.black at au dot ibm.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81318

--- Comment #30 from Daniel Black  ---
Still failing for me.

$ toolchain/bin/gcc --version
gcc (GCC) 8.0.0 20171008 (experimental)

(code from comment 27)
$ toolchain/bin/gcc -O1  -c /tmp/x.c
...
during GIMPLE pass: profile_estimate
/tmp/x.c: In function ‘fn3’:
/tmp/x.c:9:1: internal compiler error: in to_reg_br_prob_base, at
profile-count.h:189
 }
 ^
0x657bef profile_probability::to_reg_br_prob_base() const
../../gcc/profile-count.h:189
0x657bef estimate_bb_frequencies(bool)
../../gcc/predict.c:3570
0xc64eaa tree_estimate_probability(bool)
../../gcc/predict.c:2827
0xc64f83 execute
../../gcc/predict.c:3718

[Bug middle-end/81318] [8 regression] ICE in to_reg_br_prob_base, at profile-count.h:189

2017-09-07 Thread daniel.black at au dot ibm.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81318

--- Comment #27 from Daniel Black  ---
reduced test case, quite similar however just to be sure:

int a, b;
__attribute__((__cold__)) fn1();
__attribute__((always_inline)) fn2() { fn1(); }
fn3() {
  fn2();
  if (b)
a = 0;
}

[Bug middle-end/81318] [8 regression] ICE in to_reg_br_prob_base, at profile-count.h:189

2017-09-06 Thread daniel.black at au dot ibm.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81318

Daniel Black  changed:

   What|Removed |Added

 CC||daniel.black at au dot ibm.com

--- Comment #25 from Daniel Black  ---
Also getting this on linux kernel 4.13 release on gcc master branch but not
gcc-7:

There are at least two locations that generate this backtrace.

gcc -O1 -c -o drivers/scsi/mpt3sas/.tmp_mpt3sas_scsih.o   ./mpt3sas_scsih.i

during GIMPLE pass: profile_estimate
drivers/scsi/mpt3sas/mpt3sas_scsih.c: In function ‘mpt3sas_scsih_issue_tm’:
drivers/scsi/mpt3sas/mpt3sas_scsih.c:9455:1: internal compiler error: in
to_reg_br_prob_base, at profile-count.h:189
 module_exit(_mpt3sas_exit);
 ^~
0x1085d55f profile_probability::to_reg_br_prob_base() const
../../gcc/profile-count.h:189
0x1085d55f estimate_bb_frequencies(bool)
../../gcc/predict.c:3570
0x10861123 tree_estimate_probability(bool)
../../gcc/predict.c:2827
0x1086165f execute
../../gcc/predict.c:3712
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

Simplest ICE generation is -O1. -O0 gets to code errors.

[Bug sanitizer/81340] ICE in compute_bb_dataflow, at var-tracking.c:6877

2017-07-30 Thread daniel.black at au dot ibm.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81340

--- Comment #5 from Daniel Black  ---
Thankyou Martin.

[Bug c++/80593] [7 Regression] GCC 7, aligned_storage and “dereferencing type-punned pointer will break strict-aliasing rules”

2017-06-07 Thread daniel.black at au dot ibm.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80593

--- Comment #13 from Daniel Black  ---
Thanks Richard.

[Bug c++/80593] [7 Regression] GCC 7, aligned_storage and “dereferencing type-punned pointer will break strict-aliasing rules”

2017-06-05 Thread daniel.black at au dot ibm.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80593

Daniel Black  changed:

   What|Removed |Added

 CC||daniel.black at au dot ibm.com

--- Comment #10 from Daniel Black  ---
FYI I have tested from the gcc master (x86_64-pc-linux-gnu-g++ (GCC) 8.0.0
20170605 (experimental)) and it doesn't identify the the following bit of
rocksdb code as a warning where previously it did. So fixed for me on master.

./db/write_thread.h:227:78: error: dereferencing type-punned pointer will break
strict-aliasing rules [-Werror=strict-aliasing]
   return
*static_cast<std::mutex*>(static_cast<void*>(_mutex_bytes));

ref: https://github.com/facebook/rocksdb/issues/2382

Still fails using the gcc at the head of the gcc-7-branch however

[Bug target/78614] [7 Regression] ICE error: invalid rtl sharing found in the insn (verify_rtx_sharing) gcc/emit-rtl.c:2743

2016-12-11 Thread daniel.black at au dot ibm.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78614

Daniel Black  changed:

   What|Removed |Added

 CC||daniel.black at au dot ibm.com

--- Comment #25 from Daniel Black  ---
*** Bug 78624 has been marked as a duplicate of this bug. ***

[Bug target/78624] [7 Regression] ICE (invalid rtl sharing) while doing a build

2016-12-11 Thread daniel.black at au dot ibm.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78624

Daniel Black  changed:

   What|Removed |Added

 Status|WAITING |RESOLVED
 Resolution|--- |DUPLICATE

--- Comment #3 from Daniel Black  ---
32bit powerpc and powerpc64 builds are fixed. BE & LE.

Sorry the libgcc2.i source has been purged.

Thanks for the fix.

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

[Bug bootstrap/78624] New: crosstool-ng targets powerpc-unknown-linux-gnu and powerpc64-unknown-linux-gnu fail to compile

2016-11-30 Thread daniel.black at au dot ibm.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78624

Bug ID: 78624
   Summary: crosstool-ng targets powerpc-unknown-linux-gnu and
powerpc64-unknown-linux-gnu fail to compile
   Product: gcc
   Version: 7.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: bootstrap
  Assignee: unassigned at gcc dot gnu.org
  Reporter: daniel.black at au dot ibm.com
  Target Milestone: ---

GCC_REVISION=7f5fcbbd91c8e2

There failures occur on all LE and BE targets for Power platform.

+ target=powerpc-unknown-linux-gnu
+ ct-ng powerpc-unknown-linux-gnu

[ALL  ]/workspace/.build/src/gcc-git/libgcc/libgcc2.c: In function
'__floatditf':
[ERROR]/workspace/.build/src/gcc-git/libgcc/libgcc2.c:1575:1: error:
invalid rtl sharing found in the insn
[ALL  ] }
[ALL  ] ^
[ALL  ](insn/f 94 93 95 2 (parallel [
[ALL  ](clobber (reg:SI 65 lr))
[ALL  ](use (symbol_ref:SI ("_savefpr_28") [flags 0x1]))
[ALL  ](use (reg:SI 11 11))
[ALL  ](set (mem/c:DF (plus:SI (reg:SI 11 11)
[ALL  ](const_int -32 [0xffe0])) [6  S8
A8])
[ALL  ](reg:DF 60 28))
[ALL  ](set (mem/c:DF (plus:SI (reg:SI 11 11)
[ALL  ](const_int -24 [0xffe8])) [6  S8
A8])
[ALL  ](reg:DF 61 29))
[ALL  ](set (mem/c:DF (plus:SI (reg:SI 11 11)
[ALL  ](const_int -16 [0xfff0])) [6  S8
A8])
[ALL  ](reg:DF 62 30))
[ALL  ](set (mem/c:DF (plus:SI (reg:SI 11 11)
[ALL  ](const_int -8 [0xfff8])) [6  S8
A8])
[ALL  ](reg:DF 63 31))
[ALL  ]]) "/workspace/.build/src/gcc-git/libgcc/libgcc2.c":1567 -1
[ALL  ] (expr_list:REG_FRAME_RELATED_EXPR (parallel [
[ALL  ](clobber (reg:SI 65 lr))
[ALL  ](use (symbol_ref:SI ("_savefpr_28") [flags 0x1]))
[ALL  ](use (reg:SI 11 11))
[ALL  ](set/f (mem/c:DF (plus:SI (reg/f:SI 1 1)
[ALL  ](const_int 48 [0x30])) [6  S8 A8])
[ALL  ](reg:DF 60 28))
[ALL  ](set/f (mem/c:DF (plus:SI (reg/f:SI 1 1)
[ALL  ](const_int 56 [0x38])) [6  S8 A8])
[ALL  ](reg:DF 61 29))
[ALL  ](set/f (mem/c:DF (plus:SI (reg/f:SI 1 1)
[ALL  ](const_int 64 [0x40])) [6  S8 A8])
[ALL  ](reg:DF 62 30))
[ALL  ](set/f (mem/c:DF (plus:SI (reg/f:SI 1 1)
[ALL  ](const_int 72 [0x48])) [6  S8 A8])
[ALL  ](reg:DF 63 31))
[ALL  ]])
[ALL  ](nil)))
[ERROR]/workspace/.build/src/gcc-git/libgcc/libgcc2.c:1575:1: error: shared
rtx
[ALL  ](use (symbol_ref:SI ("_savefpr_28") [flags 0x1]))
[ERROR]/workspace/.build/src/gcc-git/libgcc/libgcc2.c:1575:1: internal
compiler error: internal consistency failure



+ target=powerpc64-unknown-linux-gnu
+ ct-ng powerpc64-unknown-linux-gnu

[ALL  ]/workspace/.build/src/gcc-git/libgcc/config/rs6000/extendkftf2-sw.c:
In function '__extendkftf2':
[ERROR]   
/workspace/.build/src/gcc-git/libgcc/config/rs6000/extendkftf2-sw.c:53:1:
error: invalid rtl sharing found in the insn
[ALL  ] }
[ALL  ] ^
[ALL  ](insn/f 95 94 96 2 (parallel [
[ALL  ](set (mem/c:V4SI (plus:DI (reg/f:DI 1 1)
[ALL  ](reg:DI 0 0)) [6  S16 A8])
[ALL  ](reg:V4SI 108 31))
[ALL  ](unspec [
[ALL  ](const_int 0 [0])
[ALL  ]] UNSPEC_STVX)
[ALL  ]])
"/workspace/.build/src/gcc-git/libgcc/config/rs6000/extendkftf2-sw.c":48 -1
[ALL  ] (expr_list:REG_FRAME_RELATED_EXPR (parallel [
[ALL  ](set/f (mem/c:V4SI (plus:DI (reg/f:DI 1 1)
[ALL  ](const_int 32 [0x20])) [6  S16 A8])
[ALL  ](reg:V4SI 108 31))
[ALL  ](unspec [
[ALL  ](const_int 0 [0])
[ALL  ]] UNSPEC_STVX)
[ALL  ]])
[ALL  ](nil)))
[ERROR]   
/workspace/.build/src/gcc-git/libgcc/config/rs6000/extendkftf2-sw.c:53:1:
error: shared rtx
[ALL  ](unspec [
[ALL  ](const_int 0 [0])
[ALL  ]] UNSPEC_STVX)
[ERROR]   
/workspace/.build/src/gcc-git/libgcc/config/rs6000/extendkftf2-sw.c:53:1:
internal compiler error: internal consistency failure


These where compiling ok at revision 87d3f053419d4f

[Bug preprocessor/78169] internal compiler error: in get_substring_ranges_for_loc, at input.c:1379

2016-10-31 Thread daniel.black at au dot ibm.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78169

Daniel Black  changed:

   What|Removed |Added

 Target||x86_64-unknown-linux-gnu-gc
   ||c /
   ||powerpc64le-unknown-linux-g
   ||nu-gcc

--- Comment #3 from Daniel Black  ---
also fails in powerpc64le (cross compile to same arch)

[Bug preprocessor/78169] internal compiler error: in get_substring_ranges_for_loc, at input.c:1379

2016-10-31 Thread daniel.black at au dot ibm.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78169

--- Comment #2 from Daniel Black  ---
Yes, using a x86_84 -> x86_64 cross compiler. Built with `ct-ng
x86_64-unknown-linux-gnu`

[Bug libgcc/78169] New: internal compiler error: in get_substring_ranges_for_loc, at input.c:1379

2016-10-31 Thread daniel.black at au dot ibm.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78169

Bug ID: 78169
   Summary: internal compiler error: in
get_substring_ranges_for_loc, at input.c:1379
   Product: gcc
   Version: 7.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: libgcc
  Assignee: unassigned at gcc dot gnu.org
  Reporter: daniel.black at au dot ibm.com
  Target Milestone: ---

Created attachment 39927
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39927=edit
miminzed util.c

GCC_REVISION=6f2035ca9fb6fb build with crosstool-ng

19:50:48 Cloning into 'crosstool-ng'...
19:50:49 Submodule path 'crosstool-ng': checked out
'11cb2ddd43fd1ff493f4b7cd63f1cf654294165f'

..
19:50:52 + cd
/var/lib/jenkins/workspace/r-TVH2TYTYS5LFT5OWR4ZZLMWWTONACRLY7KIN7RVZZFBTB776IFHA/HOST_OS/ubuntu-16.04/HOST_PLATFORM/x86_64/TARGET_PLATFORM/x86_64/gcc
19:50:52 ++ git rev-parse HEAD
19:50:52 ++ cut -c 1-14
19:50:52 + export GCC_REVISION=6f2035ca9fb6fb
19:50:52 + GCC_REVISION=6f2035ca9fb6fb
19:50:52 + cd
/var/lib/jenkins/workspace/r-TVH2TYTYS5LFT5OWR4ZZLMWWTONACRLY7KIN7RVZZFBTB776IFHA/HOST_OS/ubuntu-16.04/HOST_PLATFORM/x86_64/TARGET_PLATFORM/x86_64/binutils
19:50:52 ++ git rev-parse HEAD
19:50:52 ++ cut -c 1-14
19:50:52 + export BINUTILS_REVISION=2870b1ba83fc0e
19:50:52 + BINUTILS_REVISION=2870b1ba83fc0e
...
19:51:03 + cd
/var/lib/jenkins/workspace/r-TVH2TYTYS5LFT5OWR4ZZLMWWTONACRLY7KIN7RVZZFBTB776IFHA/HOST_OS/ubuntu-16.04/HOST_PLATFORM/x86_64/TARGET_PLATFORM/x86_64/crosstool-build-script/crosstool-ng
19:51:03 + ./bootstrap
19:51:03 Running autoconf...
19:51:04 Done. You may now run:
19:51:04 ./configure
19:51:04 + ./configure
--prefix=/var/lib/jenkins/workspace/r-TVH2TYTYS5LFT5OWR4ZZLMWWTONACRLY7KIN7RVZZFBTB776IFHA/HOST_OS/ubuntu-16.04/HOST_PLATFORM/x86_64/TARGET_PLATFORM/x86_64/xtool
19:51:04 checking build system type... x86_64-pc-linux-gnu
19:51:04 checking host system type... x86_64-pc-linux-gnu



/home/ozlabs/gcc/bin/x86_64-unknown-linux-gnu-gcc --version
x86_64-unknown-linux-gnu-gcc (crosstool-NG crosstool-ng-1.22.0-201-g11cb2dd)
7.0.0 20161030 (experimental)
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.




home/ozlabs/gcc/bin/x86_64-unknown-linux-gnu-gcc   -Wall  -O -o
CMakeFiles/libgroonga.dir/util.c.o -cutil_minimised.i
In file included from /usr/include/stdlib.h:24:0,
 from
/home/ozlabs/mariadb-server/storage/mroonga/vendor/groonga/lib/grn.h:34,
 from
/home/ozlabs/mariadb-server/storage/mroonga/vendor/groonga/lib/grn_db.h:20,
 from util_minimised.i:1:
/usr/include/features.h:127:78: warning: file
"/home/ozlabs/mariadb-server/storage/mroonga/vendor/groonga/lib/grn.h"
linemarker ignored due to incorrect nesting

  ^
In file included from /usr/include/stdlib.h:24:0,
 from
/home/ozlabs/mariadb-server/storage/mroonga/vendor/groonga/lib/grn.h:34,
 from
/home/ozlabs/mariadb-server/storage/mroonga/vendor/groonga/lib/grn_db.h:20,
 from util_minimised.i:1:
/home/ozlabs/mariadb-server/storage/mroonga/vendor/groonga/lib/grn.h:147:79:
warning: file
"/home/ozlabs/mariadb-server/storage/mroonga/vendor/groonga/lib/grn.h"
linemarker ignored due to incorrect nesting
 #  include 
  
^
In file included from /usr/include/stdlib.h:24:0,
 from
/home/ozlabs/mariadb-server/storage/mroonga/vendor/groonga/lib/grn.h:34,
 from
/home/ozlabs/mariadb-server/storage/mroonga/vendor/groonga/lib/grn_db.h:20,
 from util_minimised.i:1:
/home/ozlabs/mariadb-server/storage/mroonga/vendor/groonga/lib/grn.h:216:94:
warning: file
"/home/ozlabs/mariadb-server/storage/mroonga/vendor/groonga/include/groonga/groonga.h"
linemarker ignored due to incorrect nesting

   
  ^
In file included from /usr/include/stdlib.h:24:0,
 from
/home/ozlabs/mariadb-server/storage/mroonga/vendor/groonga/lib/grn.h:34,
 from
/home/ozlabs/mariadb-server/storage/mroonga/vendor/groonga/lib/grn_db.h:20,
 from util_minimised.i:1:
/home/ozlabs/mariadb-server/storage/mroonga/vendor/groonga/include/groonga/groonga.h:
In function 'grn_inspect_type':
/home/ozlabs/mariadb-server/storage/mroonga/vendor/groonga/include/groonga/groonga.h:239:83:
warning: implicit declaration of function 'strlen'
[-Wimplicit-function-declaration]

   
   ^
/home/ozlabs/mariadb-server/storage/mroonga/vendor/groonga/include/