Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
The following code has a sequence point violation, but gcc does not emit a
warning.
$: cat small.c
int a, b;
short c;
void fn1(int p) {}
void fn2() { fn1(a == (c &= a = b)); }
$:
$:
Priority: P3
Component: rtl-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
The following code crashes the trunk in both 32-bit and 64-bit modes. gcc-5.1
is fine with the code.
$: gcc-trunk -v
Using
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
The following code crashes the gcc trunk in both 32-bit and 64-bit modes at -O0
on x86_64-linux-gnu.
$: gcc-trunk -v
Using built-in
Version: 6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
The following code crashes the trunk at -Os and above in
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
The following code crashes the trunk on x86_64-linux-gnu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69989
Chengnian Sun changed:
What|Removed |Added
CC||chengniansun at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69068
Chengnian Sun changed:
What|Removed |Added
CC||chengniansun at gmail dot com
Priority: P3
Component: web
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
The following code is miscompiled by the trunk, gcc-4.7 and gcc-4.8 at -O3 in
both 32-bit and 64-bit modes on x86_64-linux-gnu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69951
Chengnian Sun changed:
What|Removed |Added
CC||chengniansun at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69951
--- Comment #7 from Chengnian Sun ---
(In reply to Richard Biener from comment #6)
> Seems I typoed the PR reference in the commit:
>
> Author: rguenth
> Date: Fri Feb 26 08:34:58 2016
> New Revision: 233734
>
> URL: https://gcc.gnu.org/viewcvs
((constructor))]
Product: gcc
Version: 6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
The following
Version: 6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
$: gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc
: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
The following code is miscompiled by the trunk at -O2 and -O3 in both 32-bit
and 64-bit modes on x86_64-linux-gnu.
This bug
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70309
Chengnian Sun changed:
What|Removed |Added
CC||chengniansun at gmail dot com
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
The following code crashes the trunk of gcc at -O1 and above in both 32-bit and
64-bit modes
: 6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
The following code crashes the trunk at -O2 and -O3 in 32-bit mode
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69773
Chengnian Sun changed:
What|Removed |Added
CC||chengniansun at gmail dot com
: 6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: rtl-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
The following code crashes the trunk at -O3 in 32
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
The following code is miscompiled by the trunk at -O2 and -O3 on
x86_64-linux-gnu in 32-bit and 64-bit modes
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70964
Chengnian Sun changed:
What|Removed |Added
CC||chengniansun at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71006
Chengnian Sun changed:
What|Removed |Added
CC||chengniansun at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71006
--- Comment #6 from Chengnian Sun ---
(In reply to Ilya Enkovich from comment #4)
> (In reply to Chengnian Sun from comment #3)
> > Hi,
> >
> > Can you help check whether the following test case is a duplicate? Thanks.
>
> This is definitely
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71170
Chengnian Sun changed:
What|Removed |Added
CC||chengniansun at gmail dot com
Version: 6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
The following code crashes the trunk at all
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
$: gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/usr/local/gcc
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
$: gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/usr/local/gcc-trunk/libexec/gcc
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
The following code crashes the trunk at -O2 and -O3 in 32
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
$: gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71328
Chengnian Sun changed:
What|Removed |Added
CC||chengniansun at gmail dot com
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
$: gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/usr/local/gcc
)
Product: gcc
Version: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
$: gcc-trunk -v
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71407
Chengnian Sun changed:
What|Removed |Added
CC||chengniansun at gmail dot com
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
$: gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/usr/local/gcc
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
The following code is miscompiled by the trunk at -O3 in both 32-bit and 64-bit
modes on x86_64-linux-gnu.
$: gcc-trunk
||chengniansun at gmail dot com
Resolution|DUPLICATE |---
--- Comment #7 from Chengnian Sun ---
As Qirun said, this bug has not been fixed yet.
: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
The following code crashes the trunk on on x86_64-linux-gnu in both
: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
tree-predcom.c:1651)
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/usr/local/gcc-trunk/libexec/gcc/x86_64-pc-linux
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
Sorry about the large test program. I have tried ever
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/usr/local/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/usr/local/gcc-trunk/libexec/gcc/x86_64-pc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
$ gcc-trunk -v
Using built-in specs
: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/usr/local/gcc-trunk/libexec/gcc/x86_64-pc
: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
CC: chengniansun at gmail dot com
Target Milestone: ---
Status: RESOLVED
CC: chengniansun at gmail dot
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/usr/local/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu
: gcc
Version: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
$ gcc-trunk -v
Using built-in specs
)
Product: gcc
Version: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
$ gcc-trunk -v
Using built-in
c dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
The following program crashes gcc in the 64-bit mode, but causes gcc to hang in
the 32-bit mode.
$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/usr/local/gcc-trunk/libexec/gcc/x86_
))
Product: gcc
Version: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
$ gcc-trunk -v
Using built-in specs
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/usr/local/gcc-trunk
: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/usr/local/gcc-trunk/libexec
)
Product: gcc
Version: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
$ gcc-trunk -v
Using
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/usr/local/gcc-trunk/libexec/gcc
build_value_init_noctor, at cp/init.c:380)
Product: gcc
Version: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
})
Product: gcc
Version: 7.0.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
$ gcc-trunk -v
Using built-in specs
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
This is a regression. gcc-4.9 does not ICE.
$ gcc-trunk -v
Using built
Version: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
$ g++-trunk -v
Using built-in specs.
COLLECT_GCC=g++-trunk
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
$ g++-trunk -v
Using built-in specs.
COLLECT_GCC=g++-trunk
COLLECT_LTO_WRAPPER=/usr/local/gcc-trunk/libexec/gcc
Reporter: chengniansun at gmail dot com
Target Milestone: ---
$ g++-trunk -v
Using built-in specs.
COLLECT_GCC=g++-trunk
COLLECT_LTO_WRAPPER=/usr/local/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/7.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc-source-trunk/configure --enable
Version: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
$ g++-trunk -v
Using built-in specs.
COLLECT_GCC=g
: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/usr/local/gcc
: gcc
Version: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
If I add "int" i
Version: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/usr/local/gcc-trunk/libexec/gcc/x86_64-pc
,
extract_and_process_scc_for_name)
Product: gcc
Version: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone
Version: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
$ gcc-trunk -v
Using built-in specs
Version: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
$ gcc-trunk -v
Using built-in specs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77906
Chengnian Sun changed:
What|Removed |Added
CC||chengniansun at gmail dot com
Version: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc
cp/decl2.c:1347)
Product: gcc
Version: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone
Version: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC
)
Product: gcc
Version: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Target Milestone: ---
$ gcc-trunk -v
Using built-in specs
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
The condition "(a & 9) == 4" is always false, and it will be great if Gcc can
emit a warning on this.
$: cat bitwise.c
int f(int a)
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
There is no warning on the expression on line 3, which has a sequence-point
issue. Either "a=3" or "a=0" could be executed first.
Moreover, it is odd that gcc does not warn that the value
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
When I was compiling a large class file, gcc emit an error that I called the
copy constructor of unique_ptr. It took me a while to figure out
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Created attachment 31829
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31829&action=edit
the test case to trigger the bug.
I used the following command
$gcc -Wall -Wextra -pedantic -std
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59801
--- Comment #2 from Chengnian Sun ---
Thanks for your reply. One more question regarding this issue. Support I have a
closed program
static volatile int a;
int main() {return 0;}
Even though "a" is not read anywhere in this program, do you mean
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
GCC outputs a wrong column number of a type-limit (comparison between 0 and
unsigned) warning.
$ gcc-trunk -Wall -Wextra -c -std=c11 -pedantic s.c
s.c: In function ‘fn1’:
s.c:33:3: warning: comparison
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
I think Gcc should warn the conversion from a const char* to a char* (i.e.,
assigning a string literal to a pointer of type "char *"). The
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
I have a return statement with a comma expression -- "return fn2(), 1, 0;".
Gcc should warn that the "1" in the middle is not used as it does not have any
side effect.
The follo
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59870
--- Comment #4 from Chengnian Sun ---
Thanks for your clarification, Harald, Jakub and Andrew.
I realize that the options "-Wall -Wextra" do not enable all the warnings. Is
there a flag in GCC which enables all the available warning types, simil
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59870
--- Comment #6 from Chengnian Sun ---
(In reply to Harald van Dijk from comment #2)
> The type of a string literal in C is char[N], unlike in C++ where it is
> const char[N]. clang's -Weverything option enables -Wwrite-strings, which
> changes the
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
There is no warning on signedness changes by implicit conversion, which occur
in dead code due to short-circuit of "or". See the following. If I change &
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59939
--- Comment #3 from Chengnian Sun ---
(In reply to Andrew Pinski from comment #1)
> IIRC this was done so that code which uses macros and have conditional code
> like:
>
> MACRO1 || fn1(a, b)
Sorry, I do not understand. Can you elaborate more? W
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59939
--- Comment #5 from Chengnian Sun ---
(In reply to Andrew Pinski from comment #4)
> (In reply to Chengnian Sun from comment #3)
> > (In reply to Andrew Pinski from comment #1)
> > > IIRC this was done so that code which uses macros and have condit
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
The column numbers of conversion warnings are not precise.
$: cat s.c
int f(unsigned i);
int g(int i) {
return f(i) + f(i)
+ f(i);
}
$: gcc-trunk -c -Wconversion s.c
s.c: In
ent
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
-Wtype-limits emits different messages for "unsigned_expression >= 0" and
"unsigned_expression >= 0UL". It would be nice if you
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Gcc emits constant overflow warnings with incorrect column numbers. The column
always starts from the beginning of the statement or expression in which
overflow occurs.
$: cat imprecise-column-no
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Gcc does not emit an unused-value warning for "fn2() ^ 0;", but emits a warning
if this expression is in a comma expression, e.g. "fn2() ^
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
I define a static global variable "g" of type "const int", with a value 0. When
assigning it to a variable of type unsigned long, Gcc em
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
The -Wconversion should not be affected by the optimization flags.
For the following code, Gcc emits no warning with flag -O0, but one conversion
warning with flag -O1.
$: cat s.c
extern
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Gcc emits a -Wsign-compare warning for the following test case with the
optimization flag -O0, but no warning with -O1.
$: cat s.c.v2.c
typedef long int64_t;
void fn1(unsigned, char, long
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60021
--- Comment #1 from Chengnian Sun ---
Interestingly, if I remove the typedef "typedef long int64_t;", the warning is
gone.
$: cat s.c
void fn1(unsigned, char, long);
void fn1(unsigned p_26, char c, long l) { /**/
const char l_1051 = 0;
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
Gcc-trunk emits a signedness conversion warning for the statement "f ^= fn1() >
a;". However, as the value of "fn1() > a" is either
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59976
Chengnian Sun changed:
What|Removed |Added
Summary|Spurious warning on |Spurious warning on
|co
1 - 100 of 212 matches
Mail list logo