https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83221
Richard Biener changed:
What|Removed |Added
Keywords||ice-checking,
|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83202
--- Comment #8 from Richard Biener ---
Author: rguenth
Date: Thu Nov 30 07:53:31 2017
New Revision: 255267
URL: https://gcc.gnu.org/viewcvs?rev=255267&root=gcc&view=rev
Log:
2017-11-30 Richard Biener
PR tree-optimization/83202
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83202
--- Comment #9 from Richard Biener ---
The last commit fixed the testcase incomment #1.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83224
Bug ID: 83224
Summary: creating character array from elements shorter than
declared does not pad with whitespace properly and
aborts
Product: gcc
Version: 6.4.0
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80881
--- Comment #13 from Liu Hao ---
Native TLS requires essential support from LD, which I don't think is going to
be available in foreseeable future.
Without native TLS GCC tries to use emulated TLS, and if it generates code
attempting to use the
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80881
--- Comment #12 from Daniel Starke ---
I am not an expert on this field but your build does not use platform tls
support as mine is supposed to do. Furthermore, I was building all under
Windows. The only difference during the build process was th
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83100
--- Comment #10 from ian at gcc dot gnu.org ---
Author: ian
Date: Thu Nov 30 05:03:29 2017
New Revision: 255266
URL: https://gcc.gnu.org/viewcvs?rev=255266&root=gcc&view=rev
Log:
compiler: don't make map zero value constant
The map zero
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81937
Jerry DeLisle changed:
What|Removed |Added
Assignee|unassigned at gcc dot gnu.org |jvdelisle at gcc dot
gnu.org
---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80881
--- Comment #11 from Liu Hao ---
Diff'ing configure options used to build both GCC produces the following
result:
```
E:\Desktop>gcc-7.1.0-debug-broken-tls\bin\gcc.exe -v 2>&1 | sed "s/ --/\n&/g" >
yours.txt
E:\Desktop>gcc -v 2>&1 | sed "s/ --/
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80881
--- Comment #10 from Liu Hao ---
Compiling this rather simple program using your gcc:
```
__thread int a = 1;
int get_a(void){
return a;
}
```
resulted in wrong assembly:
```
E:\Desktop\gcc-7.1.0-debug-broken-tls\bin>gcc E:\Desktop\test.c
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83223
Bug ID: 83223
Summary: -fconserve-stack outlined code isn't dropped if it's
logically unreachable
Product: gcc
Version: 7.2.0
Status: UNCONFIRMED
Severity: norm
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83222
Ian Lance Taylor changed:
What|Removed |Added
CC||jakub at gcc dot gnu.org
--- Comment
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83222
Andrew Pinski changed:
What|Removed |Added
Keywords||accepts-invalid
Target Milestone|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83222
Bug ID: 83222
Summary: [ 8 regression] Inconsistent "initializer element is
not constant" error
Product: gcc
Version: 8.0
Status: UNCONFIRMED
Severity: critical
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83156
--- Comment #4 from Segher Boessenkool ---
Author: segher
Date: Wed Nov 29 22:42:37 2017
New Revision: 255260
URL: https://gcc.gnu.org/viewcvs?rev=255260&root=gcc&view=rev
Log:
combine: Do not throw away unneeded arms of parallels (PR83156)
The
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82621
--- Comment #11 from Segher Boessenkool ---
Author: segher
Date: Wed Nov 29 22:42:37 2017
New Revision: 255260
URL: https://gcc.gnu.org/viewcvs?rev=255260&root=gcc&view=rev
Log:
combine: Do not throw away unneeded arms of parallels (PR83156)
Th
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83216
Jakub Jelinek changed:
What|Removed |Added
Priority|P3 |P4
CC|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83176
Jakub Jelinek changed:
What|Removed |Added
Priority|P3 |P4
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82819
Jakub Jelinek changed:
What|Removed |Added
Priority|P3 |P4
CC|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81018
Jakub Jelinek changed:
What|Removed |Added
Priority|P3 |P4
CC|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80818
--- Comment #10 from Vladimir Makarov ---
Author: vmakarov
Date: Wed Nov 29 22:19:25 2017
New Revision: 255258
URL: https://gcc.gnu.org/viewcvs?rev=255258&root=gcc&view=rev
Log:
2017-11-29 Vladimir Makarov
PR rtl-optimization/80818
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82808
Martin Jambor changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82808
--- Comment #10 from Martin Jambor ---
Author: jamborm
Date: Wed Nov 29 22:13:34 2017
New Revision: 255256
URL: https://gcc.gnu.org/viewcvs?rev=255256&root=gcc&view=rev
Log:
Be conservative with arithmetic jmp-function types
2017-11-29 Martin
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82293
Paolo Carlini changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82293
--- Comment #2 from paolo at gcc dot gnu.org ---
Author: paolo
Date: Wed Nov 29 21:54:18 2017
New Revision: 255254
URL: https://gcc.gnu.org/viewcvs?rev=255254&root=gcc&view=rev
Log:
/cp
2017-11-29 Paolo Carlini
PR c++/82293
*
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82606
--- Comment #8 from Dominique d'Humieres ---
> Created attachment 42746 [details]
> A fix for the problem
This fix the test in comment 0, but not the one in comment 1.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82760
--- Comment #3 from Jason Merrill ---
Author: jason
Date: Wed Nov 29 21:01:23 2017
New Revision: 255253
URL: https://gcc.gnu.org/viewcvs?rev=255253&root=gcc&view=rev
Log:
PR c++/82760 - memory corruption with aligned new.
* call
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82605
--- Comment #4 from Dominique d'Humieres ---
> Created attachment 42743 [details]
> A fix for the problem
>
> With the attached patch, now produces the error:
The patch works as expected.
> Error: The object ‘x’ at (1) has a deferred LEN parame
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83120
seurer at gcc dot gnu.org changed:
What|Removed |Added
CC||seurer at gcc dot gnu.org
---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83221
Bug ID: 83221
Summary: qsort comparator not anti-commutative: -2147483648,
-2147483648
Product: gcc
Version: 8.0
Status: UNCONFIRMED
Severity: normal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81616
--- Comment #34 from Jan Hubicka ---
> So gcc loses on mt19937ar.c without -mno-avx2
> But gcc wins big on matrix.c, especially with -mprefer-vector-width=none
> -mno-fma
It is because llvm does not use vgather at all unless avx512 is present.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83096
Aldy Hernandez changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81470
--- Comment #10 from Olivier Hainque ---
Created attachment 42747
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42747&action=edit
[patch] don't emit .cfi_personality/.cfi_lsda for !dwarf2 eh
We had a patch for something of this kind we ha
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83220
Bug ID: 83220
Summary: modification of a global register variable while the
function only reads from it
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severi
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83219
Bug ID: 83219
Summary: [8 regression] c-c++-common/ubsan/unreachable-2.c
fails starting with r255201
Product: gcc
Version: 8.0
Status: UNCONFIRMED
Severity: nor
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83218
Dominique d'Humieres changed:
What|Removed |Added
Status|UNCONFIRMED |WAITING
Last reconfirmed|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83218
Bug ID: 83218
Summary: gforttran command fails to compile if fortran file is
present inside folder "%+@"
Product: gcc
Version: 6.3.0
Status: UNCONFIRMED
Severit
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83131
Martin Sebor changed:
What|Removed |Added
Status|NEW |ASSIGNED
Assignee|unassigned at
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83195
Jakub Jelinek changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83195
--- Comment #5 from Jakub Jelinek ---
Author: jakub
Date: Wed Nov 29 17:38:54 2017
New Revision: 255247
URL: https://gcc.gnu.org/viewcvs?rev=255247&root=gcc&view=rev
Log:
PR tree-optimization/83195
* gcc.dg/pr82929.c: Don't check
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82606
Paul Thomas changed:
What|Removed |Added
Assignee|unassigned at gcc dot gnu.org |pault at gcc dot gnu.org
--- Commen
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83217
Bug ID: 83217
Summary: Compiler segfault: structured binding by reference to
a templated type via a pointer
Product: gcc
Version: 7.2.0
Status: UNCONFIRMED
Seve
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83199
--- Comment #6 from Jan Kratochvil ---
The Comment 5 binaries SEGV and do not start on Fedora 26 armv7l.
But I do not see some wrong DWARF there.
(In reply to Jan Kratochvil from comment #3)
> Addresses are missing when the function is inlined.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81616
--- Comment #33 from Andrew Roberts ---
That second llvm command line should read:
/usr/local/llvm-5.0.1-rc2/bin/clang -march=znver1 -mtune=znver1 -Ofast
mt19937ar.c -o mt19937ar
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83210
Jakub Jelinek changed:
What|Removed |Added
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81616
--- Comment #32 from Andrew Roberts ---
For what its worth, here's what the latest and greatest from the competition
has to offer:
/usr/local/llvm-5.0.1-rc2/bin/clang -march=znver1 -mtune=znver1 -O3 matrix.c -o
matrix
mult took 88714
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82760
Jason Merrill changed:
What|Removed |Added
Status|NEW |ASSIGNED
CC|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83131
--- Comment #2 from seurer at gcc dot gnu.org ---
The new test case was added in r255031.
Here are the warnings it is complaining about:
spawn -ignore SIGHUP /home/seurer/gcc/build/gcc-test/gcc/xgcc
-B/home/seurer/gcc/build/gcc-test/gcc/
/home/s
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80881
--- Comment #9 from Daniel Starke ---
This was a native build.
I have added the GCC build in question to
https://sourceforge.net/projects/gcc-win64/files/7.1.0/gcc-7.1.0-debug-broken-tls.7z
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83216
--- Comment #5 from rguenther at suse dot de ---
On November 29, 2017 4:35:12 PM GMT+01:00, "thopre01 at gcc dot gnu.org"
wrote:
>https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83216
>
>--- Comment #3 from Thomas Preud'homme
>---
>(In reply to Ri
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83073
--- Comment #3 from Marc Glisse ---
(In reply to Richard Biener from comment #2)
> The "proper" result for [MIN,MAX] | 1 is of course a set of every odd
> number...
Sadly, while we track may-be-nonzero bits in CCP (maybe with the VRP reorg
there
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83216
--- Comment #4 from Dominique d'Humieres ---
For x86_64-pc-linux-gnu I see
FAIL: gcc.dg/stack-layout-dynamic-1.c scan-assembler-not cfi_def_cfa_register
FAIL: gcc.dg/graphite/interchange-3.c scan-tree-dump graphite "tiled"
FAIL: gcc.dg/graphite/
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83216
--- Comment #3 from Thomas Preud'homme ---
(In reply to Richard Biener from comment #2)
> Can't reproduce
>
> What ISL version are you using?
ISL 0.15.
Also my apologies but I haven't tried on Arm Cortex-M7 yet actually, typed it
in as a forc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83216
Richard Biener changed:
What|Removed |Added
Status|UNCONFIRMED |WAITING
Last reconfirmed|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83216
Richard Biener changed:
What|Removed |Added
Target Milestone|--- |8.0
--- Comment #1 from Richard Biener
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83215
Richard Biener changed:
What|Removed |Added
CC||rguenth at gcc dot gnu.org
--- Comment
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83173
--- Comment #2 from Mike Gulick ---
I have made some progress in determining the cause of this bug. This issue
occurs when the current source_location is > LINE_MAP_MAX_LOCATION_WITH_COLS
and when a #include is the last line in the file (with a
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83073
--- Comment #2 from Richard Biener ---
So for VARYING | 1 we go using the may_be_nonzero stuff in
else if (code == BIT_IOR_EXPR)
{
max = wide_int_to_tree (expr_type,
may_be_nonzero0 | m
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83216
Bug ID: 83216
Summary: [8 regression] FAIL: gcc.dg/graphite/interchange-3.c
Product: gcc
Version: 8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83213
Jakub Jelinek changed:
What|Removed |Added
CC||jakub at gcc dot gnu.org
--- Comment #2
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83202
--- Comment #7 from rguenther at suse dot de ---
On Wed, 29 Nov 2017, bugzi...@poradnik-webmastera.com wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83202
>
> --- Comment #4 from Daniel Fruzynski ---
> One more case. Code has to proces
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83202
--- Comment #6 from Richard Biener ---
There are multiple issues reflected in this bug. The last commit addressed the
SLP cost model thing (not fixing any testcase on its own).
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83202
--- Comment #5 from Richard Biener ---
Author: rguenth
Date: Wed Nov 29 14:38:06 2017
New Revision: 255233
URL: https://gcc.gnu.org/viewcvs?rev=255233&root=gcc&view=rev
Log:
2017-11-29 Richard Biener
PR tree-optimization/83202
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83205
--- Comment #1 from Jakub Jelinek ---
Created attachment 42744
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42744&action=edit
gcc8-pr83205.patch
Untested fix.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83215
Jakub Jelinek changed:
What|Removed |Added
CC||jakub at gcc dot gnu.org
--- Comment #1
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82605
Paul Thomas changed:
What|Removed |Added
Assignee|unassigned at gcc dot gnu.org |pault at gcc dot gnu.org
--- Commen
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83205
Jakub Jelinek changed:
What|Removed |Added
Status|NEW |ASSIGNED
CC|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83202
--- Comment #4 from Daniel Fruzynski ---
One more case. Code has to process diagonal half of matrix and uses SSE
intrinsics - see test1() below. When n is constant like in test2() below, gcc
unrolls loops. However more more transform could be per
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83215
Bug ID: 83215
Summary: C++: struct with char-array assumed to alias with
everything
Product: gcc
Version: 8.0
Status: UNCONFIRMED
Severity: normal
Pri
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83213
Richard Biener changed:
What|Removed |Added
Keywords||ice-on-valid-code
Target|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83214
Richard Biener changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83187
Nathan Sidwell changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83187
--- Comment #3 from Nathan Sidwell ---
Author: nathan
Date: Wed Nov 29 13:22:44 2017
New Revision: 255231
URL: https://gcc.gnu.org/viewcvs?rev=255231&root=gcc&view=rev
Log:
[PATCH] complex type canonicalization
https://gcc.gnu.org/ml/gcc-patch
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83205
Jonathan Wakely changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80881
--- Comment #8 from Liu Hao ---
I cannot reproduce this problem on either i686-w64-mingw32 or
x86_64-w64-mingw32 with --enable-tls.
On line 677 in libgomp.h there is a call to `gomp_thread()` which is supposed
to return a pointer to a __thread
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83214
--- Comment #1 from Sudakshina Das ---
Sorry I am bit confused with this. Not failing anymore on my bootstrapped build
from trunk this morning!
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83199
--- Comment #5 from Thomas Preud'homme ---
Created attachment 42742
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42742&action=edit
Executable async and skip produced by GCC trunk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83206
Richard Earnshaw changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Version|8.0
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83206
--- Comment #3 from Andrew Roberts ---
ok confirmed, this bug is still present on the gcc-7 branch, with the current
snapshot:
/usr/local/gcc-7.2.1/bin/gcc -v
Using built-in specs.
COLLECT_GCC=/usr/local/gcc-7.2.1/bin/gcc
COLLECT_LTO_WRAPPER=/us
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83202
--- Comment #3 from Richard Biener ---
For the other case the issue is I think that the SLP instance group size is not
the number of scalar stmts but somehow set to the group-size. Changing that
has quite some ripple-down effects though.
-> GCC
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83185
--- Comment #6 from Jakub Jelinek ---
Started with r250031 btw.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83214
Bug ID: 83214
Summary: [8 regression] FAIL: g++.dg/gcov/gcov-8.C
-std=gnu++11 gcov failed
Product: gcc
Version: 8.0
Status: UNCONFIRMED
Severity: normal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80929
Jakub Jelinek changed:
What|Removed |Added
Priority|P3 |P4
--- Comment #11 from Jakub Jelinek -
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83185
Jakub Jelinek changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83210
Jakub Jelinek changed:
What|Removed |Added
CC||jakub at gcc dot gnu.org
--- Comment #5
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83213
--- Comment #1 from David Binderman ---
Bug seems to occur between revisions 253840 and 253974.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83185
--- Comment #4 from Jakub Jelinek ---
Author: jakub
Date: Wed Nov 29 10:33:06 2017
New Revision: 255229
URL: https://gcc.gnu.org/viewcvs?rev=255229&root=gcc&view=rev
Log:
PR middle-end/83185
* tree.c (build_simple_mem_ref_loc): H
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80929
--- Comment #10 from Jakub Jelinek ---
Author: jakub
Date: Wed Nov 29 10:31:36 2017
New Revision: 255228
URL: https://gcc.gnu.org/viewcvs?rev=255228&root=gcc&view=rev
Log:
PR middle-end/80929
* rtlanal.c (seq_cost): For non-singl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83209
Dominique d'Humieres changed:
What|Removed |Added
Priority|P3 |P4
Status|UNCONFIRMED
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83213
Bug ID: 83213
Summary: peephole bug with -O2
Product: gcc
Version: 8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassig
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83199
Jakub Jelinek changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83211
Bug ID: 83211
Summary: Warning: ignoring incorrect section type for
.init_array.00200
Product: gcc
Version: 6.4.0
Status: UNCONFIRMED
Severity: normal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83199
Jan Kratochvil changed:
What|Removed |Added
CC||jan.kratochvil at redhat dot
com
--- C
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83210
--- Comment #4 from Liu Hao ---
(In reply to Andrew Pinski from comment #2)
> (res >> 3) != src;
>
> Why not just (src>>(sizeof (res)*8-3))!=0.
>
> Seems shorter and might be faster.
What if the second operand is not a power of 2? `(res * 5 /
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83208
--- Comment #3 from ktkachov at gcc dot gnu.org ---
The testcase is "fixed" by using -fno-strict-aliasing.
In this example pointers c and d alias each other, they are of incompatible
types and they are both dereferenced, so the testcase has undefi
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83210
--- Comment #3 from Andrew Pinski ---
(In reply to Andrew Pinski from comment #2)
> (res >> 3) != src;
>
> Why not just (src>>(sizeof (res)*8-3))!=0.
>
> Seems shorter and might be faster.
And for the original case
Src>>31!=0 Just becomes src>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83210
--- Comment #2 from Andrew Pinski ---
(res >> 3) != src;
Why not just (src>>(sizeof (res)*8-3))!=0.
Seems shorter and might be faster.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83208
Andrew Pinski changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83210
--- Comment #1 from Liu Hao ---
FWIW, it can still be improved when the constant is something other than 2.
For example:
```
bool mul_8_and_check(unsigned *dst, unsigned src){
return __builtin_mul_overflow(src, 8, dst);
}
```
can be rewrit
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83199
--- Comment #2 from Thomas Preud'homme ---
(In reply to Richard Biener from comment #1)
> Are we sure this is not gdbs fault?
GDB version was fixed when I did my bisect. That said, I don't know what sort
of change happened in DWARF so it may wel
1 - 100 of 115 matches
Mail list logo