[Bug bootstrap/66638] [6 Regression] profiledbootstrap failure on x86-64 with LTO

2016-04-08 Thread ctice at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66638

--- Comment #7 from ctice at gcc dot gnu.org ---
Author: ctice
Date: Fri Apr  8 17:09:09 2016
New Revision: 234832

URL: https://gcc.gnu.org/viewcvs?rev=234832=gcc=rev
Log:
Unify changes with Android's GCC 4.9 compiler.

Add the following changes from the Android
GCC 4.9 compiler (mostly adding fixes for aarch64):

Fix mingw build breakage
1) Add missing _GCOV_fopen if !__KERNEL__
2) Use _fullpath

Backport Cortex-A57's machine description support from trunk

Adjust generic move costs for aarch64. Backport from trunk

Enable C++ exceptions and RTTI by default.

Modify LINK_SPEC to pass --fix-cortex-a53-843419 as default

Rename libstdc++.so to libgnustl_shared.so when enabling bionic libs.

Drop mips64r2 from Android compiler's multilib

Merge "Drop mips64r2 from Android compiler's multilib"

Adjust several costs for AArch64:
  Refactor aarch64_address_costs; add cost tables for Cortex-A7;
  better estimate cost of building a constant; wrap aarch64_rtx_costs
  to dump verbose output; factor out common MULT cases; det default
  costs and handle vector modes; cost memory accesses using address
  costs; better cost logical operations; improve costs for div/mod and
  sign/zero extend operations; cost comparisons, flag setting
  operators and IF_THEN_ELSE; cost more Floating point RTX; cost
  TRUNCATE, SET, SYMBOL_REF, HIGH and LO_SUM; dump a message if we are
  unable to cost an insn; fix typos in cost data structure.


Add several improvements for AArch64 (Backported from GCC 5):
  (spill code - swap order in shr patterns; spill code - swap order in
  shl pattern; fix aarch64_rtx_costs of PLUS/MINUS; cost operand 0 in
  FP compare-with-0.0 case; properly cost FABD pattern; properly
  handle mvn-register and add EON+shift pattern and cost
  appropriately).

Disable inlining of memcpy for x86 with 'rep movs'.
Default to TLS guard for x86 stack-protector.
Change gcc BASE-VER from 4.9.x-google to 4.9.x

Cherry pick the following fixes from trunk: PR bootstrap/66638, 67954
(svn rev 230894, PR tree-optimization/65447,
PR tree-optimization/52563, tree-optimization/62173,
PR tree-optimization/48052, PR 64878, PR65048, PR65177, PR65735.

Port revision 219584 from linaro/gcc-4_9-branch

Fix for arm64 bad code for copysignl.


Added:
branches/google/gcc-4_9-mobile/gcc/sancov.c
branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/sancov/
branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/sancov/asan.c
branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/sancov/basic0.c
branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/sancov/basic1.c
branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/sancov/basic2.c
Modified:
branches/google/gcc-4_9-mobile/ChangeLog
branches/google/gcc-4_9-mobile/config/futex.m4
branches/google/gcc-4_9-mobile/configure
branches/google/gcc-4_9-mobile/configure.ac
branches/google/gcc-4_9-mobile/gcc/BASE-VER
branches/google/gcc-4_9-mobile/gcc/ChangeLog
branches/google/gcc-4_9-mobile/gcc/Makefile.in
branches/google/gcc-4_9-mobile/gcc/builtins.def
branches/google/gcc-4_9-mobile/gcc/cfghooks.c
branches/google/gcc-4_9-mobile/gcc/cfgloop.c
branches/google/gcc-4_9-mobile/gcc/cfgloop.h
branches/google/gcc-4_9-mobile/gcc/common.opt
branches/google/gcc-4_9-mobile/gcc/config/aarch64/aarch64-cores.def
branches/google/gcc-4_9-mobile/gcc/config/aarch64/aarch64-elf-raw.h
branches/google/gcc-4_9-mobile/gcc/config/aarch64/aarch64-linux.h
branches/google/gcc-4_9-mobile/gcc/config/aarch64/aarch64-protos.h
branches/google/gcc-4_9-mobile/gcc/config/aarch64/aarch64-tune.md
branches/google/gcc-4_9-mobile/gcc/config/aarch64/aarch64.c
branches/google/gcc-4_9-mobile/gcc/config/aarch64/aarch64.md
branches/google/gcc-4_9-mobile/gcc/config/aarch64/aarch64.opt
branches/google/gcc-4_9-mobile/gcc/config/i386/i386.c
branches/google/gcc-4_9-mobile/gcc/config/linux-android.h
branches/google/gcc-4_9-mobile/gcc/config/mips/t-linux-android64
branches/google/gcc-4_9-mobile/gcc/configure
branches/google/gcc-4_9-mobile/gcc/doc/invoke.texi
branches/google/gcc-4_9-mobile/gcc/except.c
branches/google/gcc-4_9-mobile/gcc/expmed.c
branches/google/gcc-4_9-mobile/gcc/gcov-io.h
branches/google/gcc-4_9-mobile/gcc/loop-init.c
branches/google/gcc-4_9-mobile/gcc/lra-constraints.c
branches/google/gcc-4_9-mobile/gcc/omp-low.c
branches/google/gcc-4_9-mobile/gcc/params.def
branches/google/gcc-4_9-mobile/gcc/passes.def
branches/google/gcc-4_9-mobile/gcc/sanitizer.def
branches/google/gcc-4_9-mobile/gcc/testsuite/ChangeLog
branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/tree-ssa/scev-3.c
branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/tree-ssa/scev-4.c
branches/google/gcc-4_9-mobile/gcc/tree-cfg.c
branches/google/gcc-4_9-mobile/gcc/tree-cfg.h
branches/google/gcc-4_9-mobile/gcc/tree-chrec.c

[Bug bootstrap/66638] [6 Regression] profiledbootstrap failure on x86-64 with LTO

2015-06-26 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66638

--- Comment #5 from H.J. Lu hjl.tools at gmail dot com ---
r225008 gave me:

../../src-trunk/gcc/../libcpp/include/line-map.h: In function
‘linemap_check_ordinary’:
../../src-trunk/gcc/../libcpp/include/line-map.h:325:10: internal compiler
error: in check_die, at dwarf2out.c:5746
0x7f3589 check_die
../../src-trunk/gcc/dwarf2out.c:5742
0x834ff0 dwarf2out_decl
../../src-trunk/gcc/dwarf2out.c:21918
0x8353cb dwarf2out_function_decl
../../src-trunk/gcc/dwarf2out.c:21927
0x8e819e rest_of_handle_final
../../src-trunk/gcc/final.c:4494
0x8e819e execute
../../src-trunk/gcc/final.c:4536
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See http://gcc.gnu.org/bugs.html for instructions.
make[7]: *** [/tmp/ccRu9AVe.ltrans0.ltrans.o] Error 1
lto-wrapper: fatal error: make returned 2 exit status
compilation terminated.
/usr/local/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[6]: *** [f951] Error 1

[Bug bootstrap/66638] [6 Regression] profiledbootstrap failure on x86-64 with LTO

2015-06-26 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66638

Markus Trippelsdorf trippels at gcc dot gnu.org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||trippels at gcc dot gnu.org
 Resolution|--- |FIXED

--- Comment #6 from Markus Trippelsdorf trippels at gcc dot gnu.org ---
(In reply to H.J. Lu from comment #5)
 r225008 gave me:
 
 ../../src-trunk/gcc/../libcpp/include/line-map.h: In function
 ‘linemap_check_ordinary’:
 ../../src-trunk/gcc/../libcpp/include/line-map.h:325:10: internal compiler
 error: in check_die, at dwarf2out.c:5746
 0x7f3589 check_die
 ../../src-trunk/gcc/dwarf2out.c:5742
 0x834ff0 dwarf2out_decl
 ../../src-trunk/gcc/dwarf2out.c:21918
 0x8353cb dwarf2out_function_decl
 ../../src-trunk/gcc/dwarf2out.c:21927
 0x8e819e rest_of_handle_final
 ../../src-trunk/gcc/final.c:4494
 0x8e819e execute
 ../../src-trunk/gcc/final.c:4536
 Please submit a full bug report,
 with preprocessed source if appropriate.
 Please include the complete backtrace with any bug report.
 See http://gcc.gnu.org/bugs.html for instructions.
 make[7]: *** [/tmp/ccRu9AVe.ltrans0.ltrans.o] Error 1
 lto-wrapper: fatal error: make returned 2 exit status
 compilation terminated.
 /usr/local/bin/ld: error: lto-wrapper failed
 collect2: error: ld returned 1 exit status
 make[6]: *** [f951] Error 1

That is PR66468.

This bug here is fixed.

[Bug bootstrap/66638] [6 Regression] profiledbootstrap failure on x86-64 with LTO

2015-06-26 Thread amker at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66638

--- Comment #4 from amker at gcc dot gnu.org ---
Author: amker
Date: Fri Jun 26 11:12:20 2015
New Revision: 225008

URL: https://gcc.gnu.org/viewcvs?rev=225008root=gccview=rev
Log:

PR bootstrap/66638
* tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
assertion failed.  Remove assertion itself.


Modified:
trunk/gcc/ChangeLog
trunk/gcc/tree-ssa-loop-niter.c


[Bug bootstrap/66638] [6 Regression] profiledbootstrap failure on x86-64 with LTO

2015-06-25 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66638

H.J. Lu hjl.tools at gmail dot com changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2015-06-25
 Ever confirmed|0   |1

--- Comment #3 from H.J. Lu hjl.tools at gmail dot com ---
(In reply to amker from comment #2)
 It is an assertion failure, only I had difficualty in reproducing the issue.
 I got below link error when doing profiledbootstrap with given configuration
 options:
 
 /tmp/cc3NzkDN.ltrans0.ltrans.o: In function `read_md_files':
 .build/gcc/../../gcc/gcc/read-md.c:1052: undefined reference to `xmalloc'
 .build/gcc/../../gcc/gcc/read-md.c:1053: undefined reference to `htab_create'
 .build/gcc/../../gcc/gcc/read-md.c:1054: undefined reference to `xmalloc'
 .build/gcc/../../gcc/gcc/read-md.c:1055: undefined reference to `htab_create'
 .build/gcc/../../gcc/gcc/read-md.c:1056: undefined reference to `xmalloc'
 .build/gcc/../../gcc/gcc/read-md.c:1057: undefined reference to `htab_create'
 .build/gcc/../../gcc/gcc/read-md.c:1059: undefined reference to `htab_create'
 .build/gcc/../../gcc/gcc/read-md.c:1063: undefined reference to
 `unlock_std_streams'
 .build/gcc/../../gcc/gcc/read-md.c:1131: undefined reference to
 `fopen_unlocked'
 /tmp/cc3NzkDN.ltrans0.ltrans.o: In function
 `_ZL20handle_toplevel_filePFviPKcE.constprop.1':
 .build/gcc/../../gcc/gcc/read-md.c:1003: undefined reference to `lbasename'
 .build/gcc/../../gcc/gcc/read-md.c:1007: undefined reference to `xstrndup'
 /tmp/cc3NzkDN.ltrans0.ltrans.o: In function `parse_include(char const*)':
 .build/gcc/../../gcc/gcc/read-md.c:1019: undefined reference to `xmalloc'
 /tmp/cc3NzkDN.ltrans1.ltrans.o: In function `read_name(md_name*)':
 .build/gcc/../../gcc/gcc/read-md.c:429: undefined reference to `htab_find'
 .build/gcc/../../gcc/gcc/read-md.c:429: undefined reference to `htab_find'
 .build/gcc/../../gcc/gcc/read-md.c:429: undefined reference to `htab_find'
 .build/gcc/../../gcc/gcc/read-md.c:429: undefined reference to `htab_find'
 .build/gcc/../../gcc/gcc/read-md.c:429: undefined reference to `htab_find'
 
 I used ubuntu 12.04 system.  Anything wrong?

Please try binutils 2.25 and ld.bfd.


[Bug bootstrap/66638] [6 Regression] profiledbootstrap failure on x86-64 with LTO

2015-06-24 Thread izamyatin at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66638

Igor Zamyatin izamyatin at gmail dot com changed:

   What|Removed |Added

 CC||amker at gcc dot gnu.org,
   ||izamyatin at gmail dot com

--- Comment #1 from Igor Zamyatin izamyatin at gmail dot com ---
r224020 is guilty


[Bug bootstrap/66638] [6 Regression] profiledbootstrap failure on x86-64 with LTO

2015-06-24 Thread amker at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66638

--- Comment #2 from amker at gcc dot gnu.org ---
It is an assertion failure, only I had difficualty in reproducing the issue.  I
got below link error when doing profiledbootstrap with given configuration
options:

/tmp/cc3NzkDN.ltrans0.ltrans.o: In function `read_md_files':
.build/gcc/../../gcc/gcc/read-md.c:1052: undefined reference to `xmalloc'
.build/gcc/../../gcc/gcc/read-md.c:1053: undefined reference to `htab_create'
.build/gcc/../../gcc/gcc/read-md.c:1054: undefined reference to `xmalloc'
.build/gcc/../../gcc/gcc/read-md.c:1055: undefined reference to `htab_create'
.build/gcc/../../gcc/gcc/read-md.c:1056: undefined reference to `xmalloc'
.build/gcc/../../gcc/gcc/read-md.c:1057: undefined reference to `htab_create'
.build/gcc/../../gcc/gcc/read-md.c:1059: undefined reference to `htab_create'
.build/gcc/../../gcc/gcc/read-md.c:1063: undefined reference to
`unlock_std_streams'
.build/gcc/../../gcc/gcc/read-md.c:1131: undefined reference to
`fopen_unlocked'
/tmp/cc3NzkDN.ltrans0.ltrans.o: In function
`_ZL20handle_toplevel_filePFviPKcE.constprop.1':
.build/gcc/../../gcc/gcc/read-md.c:1003: undefined reference to `lbasename'
.build/gcc/../../gcc/gcc/read-md.c:1007: undefined reference to `xstrndup'
/tmp/cc3NzkDN.ltrans0.ltrans.o: In function `parse_include(char const*)':
.build/gcc/../../gcc/gcc/read-md.c:1019: undefined reference to `xmalloc'
/tmp/cc3NzkDN.ltrans1.ltrans.o: In function `read_name(md_name*)':
.build/gcc/../../gcc/gcc/read-md.c:429: undefined reference to `htab_find'
.build/gcc/../../gcc/gcc/read-md.c:429: undefined reference to `htab_find'
.build/gcc/../../gcc/gcc/read-md.c:429: undefined reference to `htab_find'
.build/gcc/../../gcc/gcc/read-md.c:429: undefined reference to `htab_find'
.build/gcc/../../gcc/gcc/read-md.c:429: undefined reference to `htab_find'

I used ubuntu 12.04 system.  Anything wrong?


[Bug bootstrap/66638] [6 Regression] profiledbootstrap failure on x86-64 with LTO

2015-06-23 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66638

Richard Biener rguenth at gcc dot gnu.org changed:

   What|Removed |Added

   Target Milestone|--- |6.0