[Bug c/71323] New: ice in verify_ssa failed
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71323 Bug ID: 71323 Summary: ice in verify_ssa failed Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- Created attachment 38587 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38587&action=edit C source code The attached C code, when compiled by today's gcc trunk and the compiler flag -O2, does this: tiff2pdf.c: In function ‘tiff2pdf’: tiff2pdf.c:711:1: error: definition in block 198 follows the use for SSA_NAME: _1153 in statement: _233 = _1153 * 2; tiff2pdf.c:711:1: internal compiler error: verify_ssa failed 0xd79fb9 verify_ssa(bool, bool) ../../src/trunk/gcc/tree-ssa.c:1039 0xab09ad execute_function_todo ../../src/trunk/gcc/passes.c:1971 0xab132b execute_todo ../../src/trunk/gcc/passes.c:2016
[Bug other/71324] New: liboffloadmic/runtime/offload_env.cpp:316]: (style) Redundant condition
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71324 Bug ID: 71324 Summary: liboffloadmic/runtime/offload_env.cpp:316]: (style) Redundant condition Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: trivial Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- liboffloadmic/runtime/offload_env.cpp:316]: (style) Redundant condition: If 'EXPR == ' '', the comparison 'EXPR != 0' is always true. Source code is while (*c != 0 && *c == ' ') { Suggest better code while (*c == ' ') {
[Bug other/71325] New: intl/dcigettext.c:588]: (style) Redundant condition
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71325 Bug ID: 71325 Summary: intl/dcigettext.c:588]: (style) Redundant condition Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: minor Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- intl/dcigettext.c:588]: (style) Redundant condition: If 'EXPR == ':'', the comparison 'EXPR != 0' is always true. Source code is while (categoryvalue[0] != '\0' && categoryvalue[0] == ':') Suggest new code while (categoryvalue[0] == ':')
[Bug other/71326] New: libcilkrts/runtime/sslib/snprintf_support.c:87]: (style) Redundant condition
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71326 Bug ID: 71326 Summary: libcilkrts/runtime/sslib/snprintf_support.c:87]: (style) Redundant condition Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: minor Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- libcilkrts/runtime/sslib/snprintf_support.c:87]: (style) Redundant condition: If 'EXPR == '.'', the comparison 'EXPR != 0' is always true. Source code is if ( format[index] != '\0' && format[index] == '.') { Suggest new code if (format[index] == '.') {
[Bug other/71327] New: libiberty/cplus-dem.c:2702]: (style) Redundant condition
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71327 Bug ID: 71327 Summary: libiberty/cplus-dem.c:2702]: (style) Redundant condition Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: minor Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- libiberty/cplus-dem.c:2702]: (style) Redundant condition: If 'EXPR == '_'', the comparison 'EXPR' is always true. Source code is while (*scan && *scan == '_') Suggest new code while (*scan == '_')
[Bug c/71328] New: ice in verify_jump_thread
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71328 Bug ID: 71328 Summary: ice in verify_jump_thread Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- Created attachment 38588 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38588&action=edit C source code The attached code, when compiled by today's gcc and compiler flag -O2, does this: oval_glob_to_regex.c: In function ‘oval_glob_to_regex’: oval_glob_to_regex.c:48:7: internal compiler error: in verify_jump_thread, at tree-ssa-threadupdate.c:2191 0xd66fe3 verify_jump_thread(basic_block_def**, unsigned int) ../../src/trunk/gcc/tree-ssa-threadupdate.c:2191 0xd6907d duplicate_thread_path ../../src/trunk/gcc/tree-ssa-threadupdate.c:2341 0xd6907d thread_through_all_blocks(bool) ../../src/trunk/gcc/tree-ssa-threadupdate.c:2496 0xd6100e execute ../../src/trunk/gcc/tree-ssa-threadbackward.c:686
[Bug rtl-optimization/60818] ICE in validate_condition_mode on powerpc*-linux-gnu*
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60818 --- Comment #8 from Arseny Solokha --- Segher, could you, please, finally decide on the future of the patch?
[Bug libstdc++/71329] New: Remove typedefs from iostream
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71329 Bug ID: 71329 Summary: Remove typedefs from iostream Product: gcc Version: 6.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: yanp.bugz at gmail dot com Target Milestone: --- iostream comes with typedefs like uint8_t , int32_t etc. The most confusing is "typedef unsigned int uint;", which is non-stadart. I guess they should be removed from iostream (from one of iostream's includes) and uint should be removed totally or user should be warned that he is using non-standard typedefs with -Wpedantic
[Bug target/71321] [6/7 Regression] x86: worse code for uint8_t % 10 and / 10
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71321 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed||2016-05-28 CC||jakub at gcc dot gnu.org Target Milestone|--- |6.2 Summary|[6 regression] x86: worse |[6/7 Regression] x86: worse |code for uint8_t % 10 and / |code for uint8_t % 10 and / |10 |10 Ever confirmed|0 |1 --- Comment #1 from Jakub Jelinek --- Note, for always_inline attribute you need also inlike keyword. This regressed with r222874.
[Bug c++/69855] Missing diagnostic for overload that only differs by return type
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69855 --- Comment #6 from Andreas Schwab --- Please update the ChangeLog after the revert.
[Bug c++/71330] New: Compile time regression
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71330 Bug ID: 71330 Summary: Compile time regression Product: gcc Version: 6.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: chrismorleygcc at gmail dot com Target Milestone: --- Created attachment 38589 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38589&action=edit c++ source file The attached code compiles in less than 1 sec in g++ 4.8.3, but ~15 minutes in 6.1.0. $ time ~/dev/compilers/linux-x86_64-2.10.1/gnu6.1.0/bin/g++ -D_REENTRANT -fPIC -Wall -Wextra -Wno-unused-parameter -Werror -Wno-unused-local-typedefs -m64 -Woverloaded-virtual -Wno-deprecated -fvisibility-inlines-hidden -fvisibility=hidden -std=c++11 -c -save-temps -v ostreamtest.cpp Using built-in specs. COLLECT_GCC=/home/cmm/dev/compilers/linux-x86_64-2.10.1/gnu6.1.0/bin/g++ Target: x86_64-pc-linux-gnu Configured with: /home/test/gcc/gcc-6.1.0/configure --enable-threads --enable-shared --enable-languages=c,c++,fortran --disable-multilib --prefix=/usr/local/hudson/workspace/gnu_build_lin64_glibc2.10/linux-x86_64-2.10.1/gnu6.1.0 Thread model: posix gcc version 6.1.0 (GCC) COLLECT_GCC_OPTIONS='-D' '_REENTRANT' '-fPIC' '-Wall' '-Wextra' '-Wno-unused-parameter' '-Werror' '-Wno-unused-local-typedefs' '-m64' '-Woverloaded-virtual' '-Wno-deprecated' '-fvisibility-inlines-hidden' '-fvisibility=hidden' '-std=c++11' '-c' '-save-temps' '-v' '-shared-libgcc' '-mtune=generic' '-march=x86-64' /home/star/mirror/compilers/linux-x86_64-2.10.1/gnu6.1.0/bin/../libexec/gcc/x86_64-pc-linux-gnu/6.1.0/cc1plus -E -quiet -v -iprefix /home/star/mirror/compilers/linux-x86_64-2.10.1/gnu6.1.0/bin/../lib/gcc/x86_64-pc-linux-gnu/6.1.0/ -D_GNU_SOURCE -D _REENTRANT ostreamtest.cpp -m64 -mtune=generic -march=x86-64 -std=c++11 -Wall -Wextra -Wno-unused-parameter -Werror -Wno-unused-local-typedefs -Woverloaded-virtual -Wno-deprecated -fPIC -fvisibility-inlines-hidden -fvisibility=hidden -fpch-preprocess -o ostreamtest.ii ignoring nonexistent directory "/home/star/mirror/compilers/linux-x86_64-2.10.1/gnu6.1.0/bin/../lib/gcc/x86_64-pc-linux-gnu/6.1.0/../../../../x86_64-pc-linux-gnu/include" ignoring duplicate directory "/home/star/mirror/compilers/linux-x86_64-2.10.1/gnu6.1.0/bin/../lib/gcc/../../lib/gcc/x86_64-pc-linux-gnu/6.1.0/../../../../include/c++/6.1.0" ignoring duplicate directory "/home/star/mirror/compilers/linux-x86_64-2.10.1/gnu6.1.0/bin/../lib/gcc/../../lib/gcc/x86_64-pc-linux-gnu/6.1.0/../../../../include/c++/6.1.0/x86_64-pc-linux-gnu" ignoring duplicate directory "/home/star/mirror/compilers/linux-x86_64-2.10.1/gnu6.1.0/bin/../lib/gcc/../../lib/gcc/x86_64-pc-linux-gnu/6.1.0/../../../../include/c++/6.1.0/backward" ignoring duplicate directory "/home/star/mirror/compilers/linux-x86_64-2.10.1/gnu6.1.0/bin/../lib/gcc/../../lib/gcc/x86_64-pc-linux-gnu/6.1.0/include" ignoring duplicate directory "/home/star/mirror/compilers/linux-x86_64-2.10.1/gnu6.1.0/bin/../lib/gcc/../../lib/gcc/x86_64-pc-linux-gnu/6.1.0/include-fixed" ignoring nonexistent directory "/home/star/mirror/compilers/linux-x86_64-2.10.1/gnu6.1.0/bin/../lib/gcc/../../lib/gcc/x86_64-pc-linux-gnu/6.1.0/../../../../x86_64-pc-linux-gnu/include" #include "..." search starts here: #include <...> search starts here: /home/star/mirror/compilers/linux-x86_64-2.10.1/gnu6.1.0/bin/../lib/gcc/x86_64-pc-linux-gnu/6.1.0/../../../../include/c++/6.1.0 /home/star/mirror/compilers/linux-x86_64-2.10.1/gnu6.1.0/bin/../lib/gcc/x86_64-pc-linux-gnu/6.1.0/../../../../include/c++/6.1.0/x86_64-pc-linux-gnu /home/star/mirror/compilers/linux-x86_64-2.10.1/gnu6.1.0/bin/../lib/gcc/x86_64-pc-linux-gnu/6.1.0/../../../../include/c++/6.1.0/backward /home/star/mirror/compilers/linux-x86_64-2.10.1/gnu6.1.0/bin/../lib/gcc/x86_64-pc-linux-gnu/6.1.0/include /home/star/mirror/compilers/linux-x86_64-2.10.1/gnu6.1.0/bin/../lib/gcc/x86_64-pc-linux-gnu/6.1.0/include-fixed /usr/local/include /home/star/mirror/compilers/linux-x86_64-2.10.1/gnu6.1.0/bin/../lib/gcc/../../include /usr/include End of search list. COLLECT_GCC_OPTIONS='-D' '_REENTRANT' '-fPIC' '-Wall' '-Wextra' '-Wno-unused-parameter' '-Werror' '-Wno-unused-local-typedefs' '-m64' '-Woverloaded-virtual' '-Wno-deprecated' '-fvisibility-inlines-hidden' '-fvisibility=hidden' '-std=c++11' '-c' '-save-temps' '-v' '-shared-libgcc' '-mtune=generic' '-march=x86-64' /home/star/mirror/compilers/linux-x86_64-2.10.1/gnu6.1.0/bin/../libexec/gcc/x86_64-pc-linux-gnu/6.1.0/cc1plus -fpreprocessed ostreamtest.ii -quiet -dumpbase ostreamtest.cpp -m64 -mtune=generic -march=x86-64 -auxbase ostreamtest -Wall -Wextra -Wno-unused-parameter -Werror -Wno-unused-local-typedefs -Woverloaded-virtual -Wno-deprecated -std=c++11 -version -fPIC -fvisibility-inlines-hidden -fvisibility=hidden -o ostreamtest.s GNU C++11 (GCC) version 6.1.0 (x86_64-pc-linux-gnu) compiled by GN
[Bug c++/71330] Compile time regression
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71330 --- Comment #1 from chrismorleygcc at gmail dot com --- Created attachment 38590 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38590&action=edit pre-processed source
[Bug c++/62207] ICE: tree check: expected tree that contains 'decl minimal' structure, have 'overload' in tsubst_copy, at cp/pt.c
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62207 pipcet at gmail dot com changed: What|Removed |Added CC||pipcet at gmail dot com --- Comment #4 from pipcet at gmail dot com --- I believe this invalid code triggers the same bug, and might be easier to analyze: extern int fn(); template class X { public: template class Y {}; template void y() {} X(F f) { Y y; y.value(); } }; int main() { const X x(fn); } In both cases, an identifier is used twice ("y" here, "ptr" in the original example), and renaming one instance to avoid the name clash avoids the ICE.
[Bug rtl-optimization/60818] ICE in validate_condition_mode on powerpc*-linux-gnu*
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60818 Segher Boessenkool changed: What|Removed |Added Target Milestone|--- |7.0 --- Comment #9 from Segher Boessenkool --- Thanks for reminding me Arseny.
[Bug c++/71105] [6/7 regression] lambdas with default captures improperly have function pointer conversions
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71105 Paolo Carlini changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed||2016-05-28 Assignee|unassigned at gcc dot gnu.org |paolo.carlini at oracle dot com Ever confirmed|0 |1 --- Comment #1 from Paolo Carlini --- Mine, seems easy.