[Bug libgomp/32193] libgomp does not honor --disable-werror

2022-11-03 Thread vapier at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=32193

Mike Frysinger  changed:

   What|Removed |Added

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

--- Comment #9 from Mike Frysinger  ---
looks like it was finally accepted here:
https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=45ba6bf28b75ee3391df83fbfb1060a50dc63d3a

[Bug c++/71058] New: ICE when building heavy templating and -std=c++17 -gstabs

2016-05-10 Thread vapier at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71058

Bug ID: 71058
   Summary: ICE when building heavy templating and -std=c++17
-gstabs
   Product: gcc
   Version: unknown
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
  Assignee: unassigned at gcc dot gnu.org
  Reporter: vapier at gcc dot gnu.org
CC: toolchain at gentoo dot org
  Target Milestone: ---
Target: x86_64-linux-gnu

when compiling this small test case, gcc-5+ crashes.  not a regression since it
requires -std=c++17 which is new to gcc-5.

$ cat test.ii
enum VkPipelineBindPoint {};
template  struct A;
template  struct B;
template <> struct A {
  template  static auto a = B::func;
};

$ g++-5.3.0 -c test.ii -gstabs -std=c++17
test.ii:4:20: internal compiler error: Segmentation fault
 template <> struct A {
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.gentoo.org/> for instructions.

$ gdb --args g++-5.3.0 -c test.ii -gstabs -std=c++17
(gdb) set follow-fork-mode child
(gdb) run
Starting program: /usr/bin/g++-5.3.0 -c test.ii -gstabs -std=c++17
[New process 25621]
process 25621 is executing new program:
/usr/libexec/gcc/x86_64-pc-linux-gnu/5.3.0/cc1plus

Thread 2.1 "cc1plus" received signal SIGSEGV, Segmentation fault.
[Switching to process 25621]
0x00d071a3 in safe_uhwi (val=val@entry=0x768a13f8,
len=len@entry=0x0, i=) at .../gcc-5.3.0/gcc/wide-int.cc:85
85  .../gcc-5.3.0/gcc/wide-int.cc: No such file or directory.
(gdb) bt
#0  0x00d071a3 in safe_uhwi (val=val@entry=0x768a13f8,
len=len@entry=0x0, i=) at .../gcc-5.3.0/gcc/wide-int.cc:85
#1  0x00d09cb3 in safe_uhwi (i=, len=0x0,
val=0x768a13f8) at .../gcc-5.3.0/gcc/wide-int.cc:85
#2  wi::lshift_large (val=val@entry=0x7fffc250, xval=0x768a13f8,
xlen=0x0, precision=precision@entry=0x80, shift=shift@entry=0x3) at
.../gcc-5.3.0/gcc/wide-int.cc:1917
#3  0x007eae41 in wi::lshift<generic_wide_int<wi::extended_tree<128> >,
int> (y=, x=...) at .../gcc-5.3.0/gcc/wide-int.h:2860
#4  int_bit_position (field=0x768a0280, field=0x768a0280) at
.../gcc-5.3.0/gcc/tree.h:5079
#5  dbxout_type_fields (type=) at
.../gcc-5.3.0/gcc/dbxout.c:1546
#6  dbxout_type (type=, type@entry=0x7689ec78,
full=, full@entry=0x1) at .../gcc-5.3.0/gcc/dbxout.c:2223
#7  0x007ed437 in dbxout_symbol (decl=0x7689a720, local=) at .../gcc-5.3.0/gcc/dbxout.c:2795
#8  0x00a33d56 in rest_of_type_compilation
(type=type@entry=0x7689ec78, toplev=0x1) at .../gcc-5.3.0/gcc/passes.c:309
#9  0x00663b50 in finish_struct_1 (t=0x7689ec78) at
.../gcc-5.3.0/gcc/cp/class.c:6742
#10 0x0066484d in finish_struct (t=t@entry=0x7689ec78,
attributes=0x0) at .../gcc-5.3.0/gcc/cp/class.c:6908
#11 0x00682506 in cp_parser_class_specifier_1 (parser=0x768a)
at .../gcc-5.3.0/gcc/cp/parser.c:19880
#12 cp_parser_class_specifier (parser=0x768a) at
.../gcc-5.3.0/gcc/cp/parser.c:20108  
#13 cp_parser_type_specifier (parser=parser@entry=0x768a,
flags=flags@entry=0x1, decl_specs=decl_specs@entry=0x7fffc6f0,
is_declaration=is_declaration@entry=0x1,
declares_class_or_enum=declares_class_or_enum@entry=0x7fffc684,
is_cv_qualifier=is_cv_qualifier@entry=0x7fffc683) at
.../gcc-5.3.0/gcc/cp/parser.c:14727  
#14 0x00697de0 in cp_parser_decl_specifier_seq
(parser=parser@entry=0x768a, flags=flags@entry=0x1,
decl_specs=decl_specs@entry=0x7fffc6f0,
declares_class_or_enum=declares_class_or_enum@entry=0x7fffc6ec) at
.../gcc-5.3.0/gcc/cp/parser.c:11958  
#15 0x0069ceed in cp_parser_single_declaration
(parser=parser@entry=0x768a, checks=checks@entry=0x0,
member_p=member_p@entry=0x0,
explicit_specialization_p=explicit_specialization_p@entry=0x1,
friend_p=friend_p@entry=0x0) at .../gcc-5.3.0/gcc/cp/parser.c:23776
#16 0x0069d8a9 in cp_parser_explicit_specialization
(parser=parser@entry=0x768a) at .../gcc-5.3.0/gcc/cp/parser.c:14623
#17 0x0067f9b0 in cp_parser_declaration
(parser=parser@entry=0x768a) at .../gcc-5.3.0/gcc/cp/parser.c:11332
#18 0x006a703b in cp_parser_declaration_seq_opt
(parser=parser@entry=0x768a) at .../gcc-5.3.0/gcc/cp/parser.c:11265
#19 0x006a7392 in cp_parser_translation_unit (parser=0x768a) at
.../gcc-5.3.0/gcc/cp/parser.c:4100
#20 c_parse_file () at .../gcc-5.3.0/gcc/cp/parser.c:33229
#21 0x0075f0ba in c_common_parse_file () at
.../gcc-5.3.0/gcc/c-family/c-opts.c:1057
#22 0x00ae1331 in compile_file () at .../gcc-5.3.0/gcc/toplev.c:594
#23 0x005e7cb0 in do_compile () at .../gcc-5.3.0/gcc/toplev.c:2067
#24 toplev::main (this=this@entry=0x7fffc920, argc=argc@entry=0xf,
argv=argv@entry=0x7fffca28) at .../gcc-5.3.0/gcc/topl

[Bug target/69587] New: -mhle documentation missing

2016-01-31 Thread vapier at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69587

Bug ID: 69587
   Summary: -mhle documentation missing
   Product: gcc
   Version: unknown
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: target
  Assignee: unassigned at gcc dot gnu.org
  Reporter: vapier at gcc dot gnu.org
CC: kirill.yukhin at intel dot com
  Target Milestone: ---
Target: x86_64-*

the -mhle option is missing from invoke.texi & extend.texi.  i'm not familiar
enough with this option to suggest a patch.

[Bug c++/69510] segfault in write_template_prefix while compiling C++ template code

2016-01-26 Thread vapier at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69510

Mike Frysinger  changed:

   What|Removed |Added

  Known to work||4.7.4, 4.8.5
Version|unknown |4.9.3
   Target Milestone|--- |4.9.4
  Known to fail||4.9.3, 5.1.0, 5.2.0, 5.3.0

[Bug c++/69510] New: segfault in write_template_prefix while compiling C++ template code

2016-01-26 Thread vapier at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69510

Bug ID: 69510
   Summary: segfault in write_template_prefix while compiling C++
template code
   Product: gcc
   Version: unknown
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
  Assignee: unassigned at gcc dot gnu.org
  Reporter: vapier at gcc dot gnu.org
  Target Milestone: ---
  Host: x86_64-linux-gnu
Target: x86_64-linux-gnu

Created attachment 37485
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37485=edit
test.ii reduced testcase

the attached test case (by Philippe Marti) crashes g++ starting with 4.9 (and
including 5.3).  4.8 and older work.


$ g++ -c test.ii -v
Using built-in specs.
COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/5.3.0/g++
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-5.3.0/work/gcc-5.3.0/configure
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr
--bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/5.3.0
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/5.3.0
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/5.3.0/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/5.3.0/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/include/g++-v5
--with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/5.3.0/python
--enable-languages=c,c++,java,go,fortran --enable-obsolete --enable-secureplt
--disable-werror --with-system-zlib --enable-nls --without-included-gettext
--enable-checking=release --with-bugurl=https://bugs.gentoo.org/
--with-pkgversion='Gentoo 5.3.0 p1.0, pie-0.6.5' --enable-libstdcxx-time
--enable-shared --enable-threads=posix --enable-__cxa_atexit
--enable-clocale=gnu --enable-multilib --with-multilib-list=mx32,m32,m64
--disable-altivec --disable-fixed-point --with-abi=m64 --enable-targets=all
--enable-libgomp --disable-libmudflap --disable-libssp --disable-libcilkrts
--enable-lto --with-isl --disable-isl-version-check --enable-libsanitizer
Thread model: posix
gcc version 5.3.0 (Gentoo 5.3.0 p1.0, pie-0.6.5) 
COLLECT_GCC_OPTIONS='-v' '-c' '-o' 'test.o' '-shared-libgcc' '-mtune=generic'
'-march=x86-64'
 /usr/libexec/gcc/x86_64-pc-linux-gnu/5.3.0/cc1plus -fpreprocessed test.ii
-quiet -dumpbase test.ii -mtune=generic -march=x86-64 -auxbase-strip test.o
-version -fstack-protector-strong -o /tmp/ccxZdwTF.s
GNU C++ (Gentoo 5.3.0 p1.0, pie-0.6.5) version 5.3.0 (x86_64-pc-linux-gnu)
compiled by GNU C version 5.3.0, GMP version 6.1.0, MPFR version
3.1.3-p4, MPC version 1.0.3
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU C++ (Gentoo 5.3.0 p1.0, pie-0.6.5) version 5.3.0 (x86_64-pc-linux-gnu)
compiled by GNU C version 5.3.0, GMP version 6.1.0, MPFR version
3.1.3-p4, MPC version 1.0.3
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 542af32c761d4d0725ea4eab192ccd39

test.ii: In instantiation of 'void Test::func(typename TClass::Type)
[with TClass = A; int TID = 1; typename TClass::Type = double]':

test.ii:2:54: internal compiler error: Segmentation fault
  public: template  class TClass> void func(typename
TClass::Type x) {};
  ^
Please submit a full bug report,
with preprocessed source if appropriate.


here's the gdb output:
$ gdb --args g++ test.ii 
Reading symbols from /usr/bin/g++...(no debugging symbols found)...done.
(gdb) set follow-fork-mode child 
(gdb) r
Starting program: /usr/bin/g++ test.ii
process 4832 is executing new program:
/usr/x86_64-pc-linux-gnu/gcc-bin/5.3.0/x86_64-pc-linux-gnu-g++
[New process 4836]
process 4836 is executing new program:
/usr/libexec/gcc/x86_64-pc-linux-gnu/5.3.0/cc1plus

Program received signal SIGSEGV, Segmentation fault.
[Switching to process 4836]
write_template_prefix (node=node@entry=0x765a6be0) at
.../gcc-5.3.0/gcc/cp/mangle.c:1163
1163.../gcc-5.3.0/gcc/cp/mangle.c: No such file or directory.
(gdb) bt
#0  write_template_prefix (node=node@entry=0x765a6be0) at
.../gcc-5.3.0/gcc/cp/mangle.c:1163
#1  0x006e6f0c in write_prefix (node=0x765acb28) at
.../gcc-5.3.0/gcc/cp/mangle.c:1078
#2  0x006e7171 in write_nested_name (decl=0x765a6c78) at
.../gcc-5.3.0/gcc/cp/mangle.c:1009
#3  0x006e37c9 in write_type (type=0x765acbd0) at
.../gcc-5.3.0/gcc/cp/mangle.c:2017
#4  0x006e5c72 in write_method_parms (parm_types=0x765a3a00,
method_p=, decl=) at
.../gcc-5.3.0/gcc/cp/mangle.c:2540
#5  0x006e5d8d in write_bare_function_type (type=0x765acd20,
include_return_type_p=0x1, decl=) at
.../gcc-5.3.0/gcc/cp/mangle.c:2482
#6  0x006e8acc in mangle_decl_string (decl=decl@entry=0x765ad510)
at .../gcc-5.3.0/gcc/cp/mangle.c:3449
#7  0x006e8c37 in get_mangled_id (decl=0x765ad510) at
.../gcc-5.3.0/

[Bug other/60465] [4.9/5 Regression] Compiling glibc-2.17,2.18 with gcc-4.8.2 and binutils-2.23.2,2.24 results in segfaults in _start / elf_get_dynamic_info

2016-01-19 Thread vapier at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60465

--- Comment #44 from Mike Frysinger  ---
Author: vapier
Date: Tue Jan 19 23:12:22 2016
New Revision: 232594

URL: https://gcc.gnu.org/viewcvs?rev=232594=gcc=rev
Log:
ia64: don't use dynamic relocations for local symbols

Backported from trunk for PR other/60465.

Added:
branches/gcc-5-branch/gcc/testsuite/gcc.target/ia64/pr60465-gprel64-c37.c
branches/gcc-5-branch/gcc/testsuite/gcc.target/ia64/pr60465-gprel64.c
Modified:
branches/gcc-5-branch/gcc/ChangeLog
branches/gcc-5-branch/gcc/config/ia64/ia64.c
branches/gcc-5-branch/gcc/config/ia64/predicates.md
branches/gcc-5-branch/gcc/testsuite/ChangeLog

[Bug other/60465] [4.9/5 Regression] Compiling glibc-2.17,2.18 with gcc-4.8.2 and binutils-2.23.2,2.24 results in segfaults in _start / elf_get_dynamic_info

2016-01-19 Thread vapier at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60465

--- Comment #45 from Mike Frysinger  ---
Author: vapier
Date: Tue Jan 19 23:15:12 2016
New Revision: 232595

URL: https://gcc.gnu.org/viewcvs?rev=232595=gcc=rev
Log:
ia64: don't use dynamic relocations for local symbols

Backported from trunk for PR other/60465.

Added:
branches/gcc-4_9-branch/gcc/testsuite/gcc.target/ia64/pr60465-gprel64-c37.c
branches/gcc-4_9-branch/gcc/testsuite/gcc.target/ia64/pr60465-gprel64.c
Modified:
branches/gcc-4_9-branch/gcc/ChangeLog
branches/gcc-4_9-branch/gcc/config/ia64/ia64.c
branches/gcc-4_9-branch/gcc/config/ia64/predicates.md
branches/gcc-4_9-branch/gcc/testsuite/ChangeLog

[Bug other/60465] [4.9/5 Regression] Compiling glibc-2.17,2.18 with gcc-4.8.2 and binutils-2.23.2,2.24 results in segfaults in _start / elf_get_dynamic_info

2016-01-19 Thread vapier at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60465

Mike Frysinger  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED
  Known to fail||4.9.3, 5.3.0

--- Comment #46 from Mike Frysinger  ---
thanks all !

[Bug other/60465] [4.9/5 Regression] Compiling glibc-2.17,2.18 with gcc-4.8.2 and binutils-2.23.2,2.24 results in segfaults in _start / elf_get_dynamic_info

2016-01-18 Thread vapier at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60465

Mike Frysinger  changed:

   What|Removed |Added

 CC||sje at gcc dot gnu.org,
   ||wilson at tuliptree dot org

--- Comment #42 from Mike Frysinger  ---
cc-ing the people listed as ia64 maintainers ... can we get someone to just
approve the patch for gcc-4.9 & gcc-5 branches ?  i can take care of actually
committing it.

[Bug target/69264] New: ICE when building spidermonkey w/-maltivec -O3: rs6000_builtin_vectorization_cost, at config/rs6000/rs6000.c:4350

2016-01-13 Thread vapier at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69264

Bug ID: 69264
   Summary: ICE when building spidermonkey w/-maltivec -O3:
rs6000_builtin_vectorization_cost, at
config/rs6000/rs6000.c:4350
   Product: gcc
   Version: unknown
   URL: https://bugs.gentoo.org/571482
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: target
  Assignee: unassigned at gcc dot gnu.org
  Reporter: vapier at gcc dot gnu.org
CC: toolchain at gentoo dot org
  Target Milestone: ---
Target: powerpc64-linux-gnu

Created attachment 37334
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37334=edit
reduced testcase

building spidermonkey on ppc64 w/-maltivec -O3 fails starting w/gcc-4.9:
powerpc64-unknown-linux-gnu-g++ -o jsxml.o -c  -fvisibility=hidden
-DOSTYPE=\"Linux4.1\" -DOSARCH=Linux -DEXPORT_JS_API -D__STDC_LIMIT_MACROS  -I.
-I. -I./dist/include -I./dist/include/nsprpub  -I/usr/include/nspr   -I.
-I./assembler -I./yarr  -fPIC  -fno-rtti -fno-exceptions -Wall -Wpointer-arith
-Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor
-Wcast-align -Wno-invalid-offsetof -Wno-variadic-macros -Werror=return-type
-pedantic -Wno-long-long -mcpu=970 -mtune=970 -O2 -maltivec -mabi=altivec -pipe
-fno-strict-aliasing -pthread -pipe  -DNDEBUG -DTRIMMED -O3 -fstrict-aliasing
-fomit-frame-pointer -DUSE_SYSTEM_MALLOC=1 -DENABLE_ASSEMBLER=1 -DENABLE_JIT=1 
 -DMOZILLA_CLIENT -include ./js-confdefs.h -MD -MF .deps/jsxml.pp jsxml.cpp
...
internal compiler error: in rs6000_builtin_vectorization_cost, at
config/rs6000/rs6000.c:4350
...

reduced test case is attached.  ICE is observed with 4.9.3 & 5.3.0.  4.8.5
works fine though.
$ powerpc64-unknown-linux-gnu-g++-4.9.3 -O3 -maltivec -c jsxml.ii
jsxml.ii: In function ‘void xml_defineProperty(JSContext*, int, const Value*)’:
jsxml.ii:74:6: internal compiler error: in rs6000_builtin_vectorization_cost,
at config/rs6000/rs6000.c:4350
 void xml_defineProperty(JSContext *cx, int id, const Value *v)
  ^

[Bug bootstrap/61164] GCC 4.9.0 fails to build libitm when fortification enabled

2016-01-12 Thread vapier at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61164

Mike Frysinger  changed:

   What|Removed |Added

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

--- Comment #5 from Mike Frysinger  ---
assuming that fixes things (for gcc-6).  will re-open if it doesn't.

[Bug other/60465] [4.9/5 Regression] Compiling glibc-2.17,2.18 with gcc-4.8.2 and binutils-2.23.2,2.24 results in segfaults in _start / elf_get_dynamic_info

2016-01-05 Thread vapier at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60465

--- Comment #40 from Mike Frysinger  ---
(In reply to Jeffrey A. Law from comment #39)

we should at least do gcc-5.  i'm guessing there won't be another 4.9.

[Bug target/55144] opening glibc-c.o: No such file or directory

2016-01-02 Thread vapier at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55144

Mike Frysinger  changed:

   What|Removed |Added

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

--- Comment #4 from Mike Frysinger  ---
previous commit should address this

[Bug target/47093] [meta-bug]: broken configurations

2016-01-02 Thread vapier at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47093
Bug 47093 depends on bug 55144, which changed state.

Bug 55144 Summary: opening glibc-c.o: No such file or directory
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55144

   What|Removed |Added

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

[Bug target/55144] opening glibc-c.o: No such file or directory

2016-01-02 Thread vapier at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55144

Mike Frysinger  changed:

   What|Removed |Added

   Target Milestone|--- |6.0