[Bug rtl-optimization/38854] New: missed optimization with -m32: empty functions shouldn't contain push/mov/pop

2009-01-15 Thread edwintorok at gmail dot com
: 4.3.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: edwintorok at gmail dot com GCC build triplet: x86_64-linux-gnu GCC host triplet: x86_64-linux

[Bug rtl-optimization/38854] missed optimization with -m32: empty functions shouldn't contain push/mov/pop

2009-01-15 Thread edwintorok at gmail dot com
--- Comment #2 from edwintorok at gmail dot com 2009-01-15 09:50 --- (In reply to comment #1) This is the frame-pointer setup code. You can get the same code as x86_64 with -momit-leaf-frame-pointer. Ok. But can't the optimizers see that you push ebp, write something

[Bug rtl-optimization/38854] missed optimization with -m32: empty functions shouldn't contain push/mov/pop

2009-01-15 Thread edwintorok at gmail dot com
--- Comment #3 from edwintorok at gmail dot com 2009-01-15 09:51 --- (In reply to comment #2) (In reply to comment #1) This is the frame-pointer setup code. You can get the same code as x86_64 with -momit-leaf-frame-pointer. Ok. But can't the optimizers see that you push

[Bug libmudflap/33591] New: mudflap gives warnings exceeding bounds on valid code, when using readdir(2) on large directories

2007-09-29 Thread edwintorok at gmail dot com
Severity: normal Priority: P3 Component: libmudflap AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: edwintorok at gmail dot com GCC build triplet: x86_64-linux-gnu GCC host triplet: x86_64-linux-gnu GCC target triplet: x86_64-linux-gnu http

[Bug libmudflap/33591] mudflap gives warnings exceeding bounds on valid code, when using readdir(2) on large directories

2007-09-29 Thread edwintorok at gmail dot com
--- Comment #1 from edwintorok at gmail dot com 2007-09-29 18:10 --- Created an attachment (id=14267) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14267action=view) preprocessed C program to reproduce bug -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33591

[Bug regression/34134] New: [4.1, 4.2, 4.3] regression: ICE when using __builtin_stack_restore

2007-11-17 Thread edwintorok at gmail dot com
: unassigned at gcc dot gnu dot org ReportedBy: edwintorok at gmail dot com GCC build triplet: x86_64-linux-gnu GCC host triplet: x86_64-linux-gnu GCC target triplet: x86_64-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34134

[Bug regression/34134] [4.1, 4.2, 4.3] regression: ICE when using __builtin_stack_restore

2007-11-17 Thread edwintorok at gmail dot com
--- Comment #1 from edwintorok at gmail dot com 2007-11-17 14:03 --- Created an attachment (id=14572) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14572action=view) reduced testcase To reproduce bug run: gcc -O1 testcase-min.i I used the delta tool to produce a reduced testcase

[Bug regression/34134] [4.1, 4.2, 4.3] regression: ICE when using __builtin_stack_restore

2007-11-17 Thread edwintorok at gmail dot com
--- Comment #2 from edwintorok at gmail dot com 2007-11-17 14:09 --- (In reply to comment #1) Created an attachment (id=14572) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14572action=view) [edit] reduced testcase To reproduce bug run: gcc -O1 testcase-min.i I used the delta

[Bug tree-optimization/39736] New: signed overflow in loop induction variable: missing warning and wrong code

2009-04-11 Thread edwintorok at gmail dot com
Priority: P3 Component: tree-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: edwintorok at gmail dot com GCC build triplet: x86_64-linux-gnu GCC host triplet: x86_64-linux-gnu GCC target triplet: x86_64-linux-gnu http://gcc.gnu.org

[Bug tree-optimization/39736] signed overflow in loop induction variable: missing warning and wrong code

2009-04-12 Thread edwintorok at gmail dot com
--- Comment #3 from edwintorok at gmail dot com 2009-04-12 09:32 --- (In reply to comment #2) (In reply to comment #1) There is no undefined behavior here (increment of a short value converts to int, increments then converts back to short, none of which are undefined), so

[Bug tree-optimization/39736] signed overflow in loop induction variable: missing warning and wrong code

2009-04-13 Thread edwintorok at gmail dot com
--- Comment #5 from edwintorok at gmail dot com 2009-04-13 06:56 --- (In reply to comment #4) (In reply to comment #3) But converting from short to int for the argument to printf should behave as if a short value was converted to int, i.e. the int value should be in range

[Bug middle-end/39891] New: Bogus location given for warning, no warning at real location: dereferencing pointer �anonymous� does break strict-aliasing rules

2009-04-25 Thread edwintorok at gmail dot com
Severity: normal Priority: P3 Component: middle-end AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: edwintorok at gmail dot com GCC build triplet: x86_64-linux-gnu GCC host triplet: x86_64-linux-gnu GCC target triplet: x86_64-linux-gnu http

[Bug middle-end/39891] Bogus location given for warning, no warning at real location: dereferencing pointer �anonymous� does break strict-aliasing rules

2009-04-25 Thread edwintorok at gmail dot com
--- Comment #1 from edwintorok at gmail dot com 2009-04-25 09:39 --- Created an attachment (id=17690) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17690action=view) testcase -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39891

[Bug middle-end/39895] New: gcc-4.4 -Wstrict-aliasing and -Wstrict-aliasing=3 behaves like -Wstrict-aliasing=2 in gcc-4.3

2009-04-25 Thread edwintorok at gmail dot com
: 4.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: edwintorok at gmail dot com GCC build triplet: x86_64-linux-gnu GCC host triplet: x86_64-linux-gnu GCC

[Bug middle-end/39895] gcc-4.4 -Wstrict-aliasing and -Wstrict-aliasing=3 behaves like -Wstrict-aliasing=2 in gcc-4.3

2009-04-25 Thread edwintorok at gmail dot com
--- Comment #2 from edwintorok at gmail dot com 2009-04-25 13:49 --- (In reply to comment #1) Casting through a union (2) describes an invalid way of doing type-punning. There is also a citation from C99 on that page: An object shall have its stored value accessed only by an lvalue

[Bug middle-end/39895] gcc-4.4 -Wstrict-aliasing and -Wstrict-aliasing=3 behaves like -Wstrict-aliasing=2 in gcc-4.3

2009-04-25 Thread edwintorok at gmail dot com
--- Comment #4 from edwintorok at gmail dot com 2009-04-25 14:12 --- (In reply to comment #3) The above is properly optimized. Why do you think that an inline function taking void * would fix anything? I can't know if memcpy will be inlined, it may just be a function call

[Bug middle-end/39895] gcc-4.4 -Wstrict-aliasing and -Wstrict-aliasing=3 behaves like -Wstrict-aliasing=2 in gcc-4.3

2009-04-25 Thread edwintorok at gmail dot com
--- Comment #7 from edwintorok at gmail dot com 2009-04-25 14:18 --- (In reply to comment #5) An object shall have its stored value accessed only by an lvalue expression that has one of the following types: * a type compatible with the effective type of the object

[Bug middle-end/39895] gcc-4.4 -Wstrict-aliasing and -Wstrict-aliasing=3 behaves like -Wstrict-aliasing=2 in gcc-4.3

2009-04-25 Thread edwintorok at gmail dot com
--- Comment #9 from edwintorok at gmail dot com 2009-04-25 14:22 --- (In reply to comment #6) No, not if it is inlined (and if not you can as well use memcpy). You can also do (GCC extension) union union_t { unsigned un; char c[4]; }; unsigned bar(char *x

[Bug lto/41756] New: LTO: -flto -O1 -use-linker-plugin, linking files compiled with -fno-exceptions with ones compiled with exceptions yields error BB 14 can not throw but has an EH edge

2009-10-19 Thread edwintorok at gmail dot com
not throw but has an EH edge Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: edwintorok at gmail dot

[Bug lto/41756] LTO: -flto -O1 -use-linker-plugin, linking files compiled with -fno-exceptions with ones compiled with exceptions yields error BB 14 can not throw but has an EH edge

2009-10-19 Thread edwintorok at gmail dot com
--- Comment #1 from edwintorok at gmail dot com 2009-10-19 16:55 --- Created an attachment (id=18827) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18827action=view) SourceMgr.i preprocessed SourceMgr.i -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41756

[Bug lto/41756] LTO: -flto -O1 -use-linker-plugin, linking files compiled with -fno-exceptions with ones compiled with exceptions yields error BB 14 can not throw but has an EH edge

2009-10-19 Thread edwintorok at gmail dot com
--- Comment #2 from edwintorok at gmail dot com 2009-10-19 16:56 --- Created an attachment (id=18828) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18828action=view) AsmMatcherEmitter.i.bz2 bzipped preprocessed AsmMatcherEmitter.i -- http://gcc.gnu.org/bugzilla/show_bug.cgi

[Bug lto/41756] LTO: -flto -O1 -use-linker-plugin, linking files compiled with -fno-exceptions with ones compiled with exceptions yields error BB 14 can not throw but has an EH edge

2009-10-19 Thread edwintorok at gmail dot com
--- Comment #3 from edwintorok at gmail dot com 2009-10-19 16:58 --- ld -v GNU gold (GNU Binutils for Debian 2.20) 1.9 This happens only if I use all of -flto -O1 -use-linker-plugin, not using -O1, or not using -use-linker-plugin hides the bug (and not using -flto too of course

[Bug lto/41756] LTO: -flto -O1 -use-linker-plugin, linking files compiled with -fno-exceptions with ones compiled with exceptions yields error BB 14 can not throw but has an EH edge

2009-10-19 Thread edwintorok at gmail dot com
--- Comment #4 from edwintorok at gmail dot com 2009-10-19 16:59 --- (In reply to comment #3) ld -v GNU gold (GNU Binutils for Debian 2.20) 1.9 This happens only if I use all of -flto -O1 -use-linker-plugin, not using -O1, or not using -use-linker-plugin hides the bug

[Bug lto/41761] New: lto1: error: type mismatch in component reference (const with non-const)

2009-10-20 Thread edwintorok at gmail dot com
reference (const with non-const) Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: edwintorok at gmail

[Bug lto/41761] lto1: error: type mismatch in component reference (const with non-const)

2009-10-20 Thread edwintorok at gmail dot com
--- Comment #1 from edwintorok at gmail dot com 2009-10-20 07:05 --- Created an attachment (id=18830) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18830action=view) reduced testcase reduced testcase -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41761

[Bug lto/41761] lto1: error: type mismatch in component reference (const with non-const)

2009-10-20 Thread edwintorok at gmail dot com
--- Comment #7 from edwintorok at gmail dot com 2009-10-20 15:06 --- (In reply to comment #6) Fixed. Thanks, I can now successfully build ClamAV with lto. -- edwintorok at gmail dot com changed: What|Removed |Added

[Bug lto/41782] New: lto/gold: -flto -user-linker-plugin dies with internal error in gold

2009-10-21 Thread edwintorok at gmail dot com
error in gold Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: edwintorok at gmail dot com GCC

[Bug lto/41782] lto/gold: -flto -user-linker-plugin dies with internal error in gold

2009-10-21 Thread edwintorok at gmail dot com
--- Comment #1 from edwintorok at gmail dot com 2009-10-21 11:22 --- Created an attachment (id=18855) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18855action=view) testcase (reduced not.i) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41782

[Bug libstdc++/42624] New: libstdc++ parallel mode deadlocks in barrier

2010-01-05 Thread edwintorok at gmail dot com
++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: edwintorok at gmail dot com GCC build triplet: x86_64-linux-gnu GCC host triplet: x86_64-linux-gnu GCC target triplet: x86_64-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42624

[Bug libstdc++/42624] libstdc++ parallel mode deadlocks in barrier

2010-01-05 Thread edwintorok at gmail dot com
--- Comment #1 from edwintorok at gmail dot com 2010-01-05 18:09 --- (In reply to comment #0) $ make -j4 This should have been: make CCLD=g++ -j4 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42624

[Bug libstdc++/42624] libstdc++ parallel mode deadlocks in barrier

2010-01-11 Thread edwintorok at gmail dot com
--- Comment #4 from edwintorok at gmail dot com 2010-01-12 07:28 --- (In reply to comment #3) Johannes is looking into it, Thanks. certainly reproducing the problem will not be a trivial taks, I'm afraid... If the steps I listed in the bugreport don't work for you just let me

[Bug libstdc++/42624] libstdc++ parallel mode deadlocks in barrier

2010-01-12 Thread edwintorok at gmail dot com
--- Comment #7 from edwintorok at gmail dot com 2010-01-12 12:41 --- (In reply to comment #6) Can I get this thing to run without actually installing it into the system? 5. clamd/clamd -c etc/clamd.conf LibClamAV Error: cl_load(): Can't get status of /usr/local/share/clamav ERROR

[Bug libstdc++/42624] libstdc++ parallel mode deadlocks in barrier

2010-01-12 Thread edwintorok at gmail dot com
--- Comment #8 from edwintorok at gmail dot com 2010-01-12 12:51 --- (In reply to comment #7) What happens for OMP_NUM_THREADS=1? Will test now. It doesn't hang with OMP_NUM_THREADS=1. It does hang with OMP_NUM_THREADS=2, or with OMP_NUM_THREADS unset. Please enter the GCC

[Bug libstdc++/42624] libstdc++ parallel mode deadlocks in barrier

2010-01-12 Thread edwintorok at gmail dot com
--- Comment #9 from edwintorok at gmail dot com 2010-01-12 13:35 --- Could this bug be related to this one: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36242#c4 Clamd creates threads using pthread_create, std::find is called from those threads. There are also threads that only poll

[Bug libstdc++/42624] libstdc++ parallel mode deadlocks in barrier

2010-01-12 Thread edwintorok at gmail dot com
--- Comment #13 from edwintorok at gmail dot com 2010-01-12 17:54 --- (In reply to comment #12) Thread 1 waits for its colleagues, but where are they gone? Is it possible that an exception is thrown inside find (by means of the value type or the predicate)? I don't fully trust gdb

[Bug libstdc++/42624] libstdc++ parallel mode deadlocks in barrier

2010-01-13 Thread edwintorok at gmail dot com
--- Comment #15 from edwintorok at gmail dot com 2010-01-13 20:39 --- (In reply to comment #14) (In reply to comment #13) This code is compiled with -fno-exceptions, could that be a problem? No, that should rather help. Still, it is very difficult to debug

[Bug rtl-optimization/37617] New: gcc 4.4 regression: ICE on valid code

2008-09-22 Thread edwintorok at gmail dot com
AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: edwintorok at gmail dot com GCC build triplet: x86_64-unknown-linux-gnu GCC host triplet: x86_64-unknown-linux-gnu GCC target triplet: x86_64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37617

[Bug rtl-optimization/37617] gcc 4.4 regression: ICE on valid code

2008-09-22 Thread edwintorok at gmail dot com
--- Comment #1 from edwintorok at gmail dot com 2008-09-22 20:18 --- /* testcase compile this with -O1 */ typedef struct TCase TCase; typedef void (*TFun) (int); typedef struct Suite Suite; void _tcase_add_test (TCase * tc, TFun tf, const char *fname, int signal

[Bug tree-optimization/37658] New: gcc-4.3 regression: long compile times on source with lots of labels/gotos

2008-09-27 Thread edwintorok at gmail dot com
: unassigned at gcc dot gnu dot org ReportedBy: edwintorok at gmail dot com GCC build triplet: x86_64-linux-gnu GCC host triplet: x86_64-linux-gnu GCC target triplet: x86_64-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37658

[Bug tree-optimization/37658] gcc-4.3 regression: long compile times on source with lots of labels/gotos

2008-09-27 Thread edwintorok at gmail dot com
--- Comment #1 from edwintorok at gmail dot com 2008-09-27 16:20 --- Created an attachment (id=16415) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16415action=view) testcase time gcc-4.3 -O2 testcase.i -c real2m13.341s user2m13.008s sys 0m0.308s -- http

[Bug rtl-optimization/37659] New: unable to find a register to spill in class �AREG�

2008-09-27 Thread edwintorok at gmail dot com
in class ‘AREG’ Product: gcc Version: 4.3.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: edwintorok at gmail dot com GCC build

[Bug rtl-optimization/37659] unable to find a register to spill in class �AREG�

2008-09-27 Thread edwintorok at gmail dot com
--- Comment #1 from edwintorok at gmail dot com 2008-09-27 16:28 --- Created an attachment (id=16416) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16416action=view) file dumped by gcc This is the file dumped by gcc, I am trying to get a reduced testcase using delta, will attach

[Bug rtl-optimization/37659] unable to find a register to spill in class �AREG�

2008-09-27 Thread edwintorok at gmail dot com
--- Comment #2 from edwintorok at gmail dot com 2008-09-27 16:40 --- Reduced testcase: /* gcc -fschedule-insns */ int foo(int a, int b) { return bar(foobar(b) / foobar(a)); } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37659

[Bug rtl-optimization/37659] unable to find a register to spill in class �AREG�

2008-09-27 Thread edwintorok at gmail dot com
--- Comment #3 from edwintorok at gmail dot com 2008-09-27 16:43 --- the error message for the above testcase: $ gcc-4.3 -fschedule-insns v.i v.i: In function ‘foo’: v.i:3: error: unable to find a register to spill in class ‘AREG’ v.i:3: error: this is the insn: (insn 17 20 18 2 v.i:2

[Bug tree-optimization/37617] [4.4 Regression] ICE on valid code

2008-10-01 Thread edwintorok at gmail dot com
--- Comment #7 from edwintorok at gmail dot com 2008-10-01 16:43 --- Thanks, gcc4.4 doesn't crash anymore now. -- edwintorok at gmail dot com changed: What|Removed |Added

[Bug tree-optimization/37867] New: inconsistent results on -O2 when reading bits from packed struct

2008-10-18 Thread edwintorok at gmail dot com
: edwintorok at gmail dot com GCC build triplet: x86_64-linux-gnu GCC host triplet: x86_64-linux-gnu GCC target triplet: x86_64-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37867

[Bug tree-optimization/37867] inconsistent results on -O2 when reading bits from packed struct

2008-10-18 Thread edwintorok at gmail dot com
--- Comment #1 from edwintorok at gmail dot com 2008-10-18 13:39 --- (In reply to comment #0) Running gcc-4.3 -O2 on PR1386.c I get different results than with -O1. $ gcc-4.3 -O2 PR1386.c ./a.out PR1386.c: In function ‘main’: PR1386.c:15: warning: large integer implicitly

[Bug tree-optimization/37867] inconsistent results on -O2 when reading bits from packed struct

2008-10-18 Thread edwintorok at gmail dot com
--- Comment #4 from edwintorok at gmail dot com 2008-10-18 18:07 --- (In reply to comment #3) Does it work with -fno-strict-aliasing? It doesn't. [EMAIL PROTECTED]:~$ g++ -O2 -fno-strict-aliasing x.c x.c: In function ‘int main()’: x.c:15: warning: large integer implicitly truncated

[Bug tree-optimization/37868] New: code that doesn't breaks TBAA is misoptimized even with -fno-strict-aliasing

2008-10-18 Thread edwintorok at gmail dot com
AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: edwintorok at gmail dot com GCC build triplet: x86_64-linux-gnu GCC host triplet: x86_64-linux-gnu GCC target triplet: x86_64-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37868

[Bug c++/37933] New: reference to ... is amibgous: same error shown twice for same line of code

2008-10-28 Thread edwintorok at gmail dot com
: 4.3.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: edwintorok at gmail dot com GCC build triplet: x86_64-linux-gnu GCC host triplet: x86_64-linux-gnu GCC target

[Bug c++/37934] New: show a warning when a symbol is unused and completely removed from the output file

2008-10-28 Thread edwintorok at gmail dot com
Severity: enhancement Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: edwintorok at gmail dot com GCC build triplet: x86_64-linux-gnu GCC host triplet: x86_64-linux-gnu GCC target triplet: x86_64-linux-gnu http://gcc.gnu.org

[Bug tree-optimization/37573] [4.4 Regression] gcc-4.4 regression: incorrect code generation with -O1 -ftree-vectorize

2008-10-29 Thread edwintorok at gmail dot com
--- Comment #13 from edwintorok at gmail dot com 2008-10-29 18:48 --- I just noticed that this testcase also fails with -O3 on gcc version 4.1.2 20070626 (Red Hat 4.1.2-14), but works on gcc version 4.1.3 20080623 (prerelease) (Debian 4.1.2-23) -- edwintorok at gmail dot com changed

[Bug tree-optimization/37573] [4.4 Regression] gcc-4.4 regression: incorrect code generation with -O1 -ftree-vectorize

2008-11-03 Thread edwintorok at gmail dot com
--- Comment #17 from edwintorok at gmail dot com 2008-11-03 17:50 --- Thanks. -- edwintorok at gmail dot com changed: What|Removed |Added Status|RESOLVED

[Bug c/38037] New: false uninitialized warnings when using a pointer as a guard

2008-11-06 Thread edwintorok at gmail dot com
Product: gcc Version: 4.3.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: edwintorok at gmail dot com GCC build triplet: x86_64-linux-gnu GCC host

[Bug c/38037] false uninitialized warnings when using a pointer as a guard

2008-11-06 Thread edwintorok at gmail dot com
--- Comment #1 from edwintorok at gmail dot com 2008-11-06 20:58 --- /* testcase gcc -O2 -Wall -c foo.c */ char *get(void); int use(const char *); void foo(const char *bar) { char *foobar; if(!bar) foobar = get(); if(use(bar

[Bug c/38037] false uninitialized warnings when using a pointer as a guard

2008-11-06 Thread edwintorok at gmail dot com
--- Comment #2 from edwintorok at gmail dot com 2008-11-06 20:59 --- /* testcase * gcc -Wall -O2 -c foo.c */ char *get(void); int use(const char *); void foo(const char *bar) { char *foobar; if(!bar) foobar = get(); if(use(bar

[Bug c/38037] false uninitialized warnings when using a pointer as a guard

2008-11-06 Thread edwintorok at gmail dot com
--- Comment #3 from edwintorok at gmail dot com 2008-11-06 21:01 --- Same happens if I use int instead of a pointer: /* testcase */ /* gcc -O2 -Wall -c foo.c */ int get(void); int use(int); void foo(int bar) { int foobar; if(!bar) foobar = get

[Bug c/38046] New: 'warning: comparison between signed and unsigned' shouldn't be given for equality comparisons

2008-11-07 Thread edwintorok at gmail dot com
Version: 4.3.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: edwintorok at gmail dot com GCC build triplet: x86_64-linux-gnu GCC host triplet: x86_64-linux-gnu GCC

[Bug c/38046] 'warning: comparison between signed and unsigned' shouldn't be given for equality comparisons

2008-11-07 Thread edwintorok at gmail dot com
--- Comment #3 from edwintorok at gmail dot com 2008-11-07 17:14 --- (In reply to comment #2) Subject: Re: New: 'warning: comparison between signed and unsigned' shouldn't be given for equality comparisons On Fri, 7 Nov 2008, edwintorok at gmail dot com wrote: Consider

[Bug c++/38123] New: [4.3 regression] error: incorrect sharing of tree nodes ap-fp_offset = D.2748;

2008-11-14 Thread edwintorok at gmail dot com
Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: edwintorok at gmail dot com GCC build triplet: x86_64-unknown-linux-gnu GCC host triplet: x86_64-unknown-linux-gnu GCC target triplet: x86_64-unknown-linux-gnu http

[Bug c++/38123] [4.3 regression] error: incorrect sharing of tree nodes ap-fp_offset = D.2748;

2008-11-14 Thread edwintorok at gmail dot com
--- Comment #1 from edwintorok at gmail dot com 2008-11-14 20:15 --- Created an attachment (id=16677) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16677action=view) original sourcecode -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38123

[Bug c++/38123] [4.3 regression] error: incorrect sharing of tree nodes ap-fp_offset = D.2748;

2008-11-14 Thread edwintorok at gmail dot com
--- Comment #2 from edwintorok at gmail dot com 2008-11-14 20:18 --- Created an attachment (id=16678) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16678action=view) preprocessed source -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38123

[Bug c++/38132] New: std::string is faster with -D_GLIBCXX_DEBUG=1 than without

2008-11-15 Thread edwintorok at gmail dot com
at gcc dot gnu dot org ReportedBy: edwintorok at gmail dot com GCC build triplet: x86_64-linux-gnu GCC host triplet: x86_64-linux-gnu GCC target triplet: x86_64-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38132

[Bug c++/38132] std::string is faster with -D_GLIBCXX_DEBUG=1 than without

2008-11-15 Thread edwintorok at gmail dot com
--- Comment #1 from edwintorok at gmail dot com 2008-11-15 13:56 --- Created an attachment (id=16682) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16682action=view) example to illustrate compile with g++ -O3, I get: real0m0.130s user0m0.100s sys 0m0.028s compile

[Bug rtl-optimization/38139] New: --enable-checking=all times out during bootstrap

2008-11-15 Thread edwintorok at gmail dot com
: unassigned at gcc dot gnu dot org ReportedBy: edwintorok at gmail dot com GCC build triplet: x86_64-linux-gnu GCC host triplet: x86_64-linux-gnu GCC target triplet: x86_64-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38139

[Bug rtl-optimization/38139] --enable-checking=all times out during bootstrap

2008-11-15 Thread edwintorok at gmail dot com
-- edwintorok at gmail dot com changed: What|Removed |Added Severity|normal |minor http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38139

[Bug rtl-optimization/38139] --enable-checking=all times out during bootstrap

2008-11-15 Thread edwintorok at gmail dot com
--- Comment #2 from edwintorok at gmail dot com 2008-11-15 21:59 --- (In reply to comment #1) Subject: Re: New: --enable-checking=all times out during bootstrap Sent from my iPhone On Nov 15, 2008, at 1:27 PM, edwintorok at gmail dot com [EMAIL PROTECTED] wrote: I

[Bug c/38157] New: -fconserve-stack enabled by default

2008-11-16 Thread edwintorok at gmail dot com
Status: UNCONFIRMED Severity: minor Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: edwintorok at gmail dot com GCC build triplet: x86_64-unknown-linux-gnu GCC host triplet: x86_64-unknown-linux-gnu GCC target

[Bug tree-optimization/38224] New: libdecnumber/bid/host-ieee32.c:50: internal compiler error: fold check: original tree changed by fold

2008-11-22 Thread edwintorok at gmail dot com
Version: 4.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: edwintorok at gmail dot com GCC build triplet: x86_64-unknown-linux-gnu GCC

[Bug tree-optimization/38224] libdecnumber/bid/host-ieee32.c:50: internal compiler error: fold check: original tree changed by fold

2008-11-22 Thread edwintorok at gmail dot com
--- Comment #1 from edwintorok at gmail dot com 2008-11-22 08:21 --- Testcase: $ /home/edwin/gcc-obj/./prev-gcc/xgcc -B/home/edwin/gcc-obj/./prev-gcc/ -B/home/edwin/gcc_inst//x86_64-unknown-linux-gnu/bin/ -Wfatal-errors -c -O1 testcase-min.i /* testcase */ typedef unsigned int UINT32

[Bug middle-end/36359] missed optimization in some cases with PRE VRP and other passes combined together

2008-11-24 Thread edwintorok at gmail dot com
--- Comment #17 from edwintorok at gmail dot com 2008-11-24 18:33 --- Created an attachment (id=16761) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16761action=view) drivers/scsi/sd.c Similar problem with drivers/scsi/sd.c I can compile the attached preprocessed on x86_64 linux

[Bug c/38296] New: documentation: improve documentation of __builtin_constant_p()

2008-11-27 Thread edwintorok at gmail dot com
of __builtin_constant_p() Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: edwintorok at gmail dot com GCC build

[Bug c/38408] New: compilation error during bootstrap in fold-const.c using TOT!

2008-12-04 Thread edwintorok at gmail dot com
Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: edwintorok at gmail dot com GCC build triplet: x86_64-linux-gnu GCC host triplet: x86_64-linux-gnu GCC target triplet: x86_64-linux-gnu http://gcc.gnu.org

[Bug tree-optimization/38224] libdecnumber/bid/host-ieee32.c:50: internal compiler error: fold check: original tree changed by fold

2008-12-06 Thread edwintorok at gmail dot com
--- Comment #3 from edwintorok at gmail dot com 2008-12-06 08:37 --- This got fixed somewhere between r142405 and r142487, because r142487 has bootstrapped successfully. -- edwintorok at gmail dot com changed: What|Removed |Added

[Bug rtl-optimization/35643] New: gcc-4.2 -O1 -fstrict-aliasing misoptimization

2008-03-19 Thread edwintorok at gmail dot com
Severity: normal Priority: P3 Component: rtl-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: edwintorok at gmail dot com GCC build triplet: x86_64-linux-gnu GCC host triplet: x86_64-linux-gnu GCC target triplet: x86_64-linux-gnu http

[Bug rtl-optimization/35643] gcc-4.2 -O1 -fstrict-aliasing misoptimization

2008-03-19 Thread edwintorok at gmail dot com
--- Comment #1 from edwintorok at gmail dot com 2008-03-19 18:54 --- Created an attachment (id=15345) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15345action=view) testcase Some observations: If you remove some dead code the optimization bug goes away: Remove either

[Bug rtl-optimization/35643] gcc-4.2 -O1 -fstrict-aliasing misoptimization

2008-03-19 Thread edwintorok at gmail dot com
--- Comment #2 from edwintorok at gmail dot com 2008-03-19 19:35 --- Created an attachment (id=15346) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15346action=view) another reduced testcase I reduced the testcase further using delta, however I had to be careful to avoid deleting

[Bug tree-optimization/35653] New: gcc-4.3 -O3/-ftree-vectorize regression: incorrect code generation

2008-03-21 Thread edwintorok at gmail dot com
AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: edwintorok at gmail dot com GCC build triplet: x86_64-linux-gnu GCC host triplet: x86_64-linux-gnu GCC target triplet: x86_64-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35653

[Bug tree-optimization/35653] gcc-4.3 -O3/-ftree-vectorize regression: incorrect code generation

2008-03-21 Thread edwintorok at gmail dot com
--- Comment #1 from edwintorok at gmail dot com 2008-03-21 12:42 --- Created an attachment (id=15353) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15353action=view) reduced testcase $ gcc-4.3 -O1 -g -ftree-vectorize test.i -o fails $ gdb ./fails GNU gdb 6.7.1-debian Copyright (C

[Bug tree-optimization/35653] [4.3/4.4 Regression]: gcc-4.3 -O3/-ftree-vectorize regression: incorrect code generation

2008-03-23 Thread edwintorok at gmail dot com
--- Comment #8 from edwintorok at gmail dot com 2008-03-23 16:59 --- (In reply to comment #7) Subject: Re: [4.3/4.4 Regression]: gcc-4.3 -O3/-ftree-vectorize regression: incorrect code generation This code violates c/c++ aliasing rules. -Wstrict-aliasing doesn't give a warning

[Bug tree-optimization/35653] [4.3/4.4 Regression]: gcc-4.3 -O3/-ftree-vectorize regression: incorrect code generation

2008-03-24 Thread edwintorok at gmail dot com
--- Comment #13 from edwintorok at gmail dot com 2008-03-24 17:00 --- (In reply to comment #11) I think the code is violating alignment requirements of the C/C++ standard. First a real bug here is that -Wstrict-aliasing doesn't warn of this situation. Do you agree? Unaligned

[Bug tree-optimization/36524] New: regression: crash when compiling IdentifierTable.cpp

2008-06-13 Thread edwintorok at gmail dot com
ReportedBy: edwintorok at gmail dot com GCC build triplet: x86_64-linux-gnu GCC host triplet: x86_64-linux-gnu GCC target triplet: x86_64-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36524

[Bug tree-optimization/36524] regression: crash when compiling IdentifierTable.cpp

2008-06-13 Thread edwintorok at gmail dot com
--- Comment #2 from edwintorok at gmail dot com 2008-06-13 11:34 --- (In reply to comment #1) -fpch-preprocess is probably one of the keys? Running cc1plus without -fpch-preprocess still leads to a crash. [EMAIL PROTECTED]:~/llvm-svn/llvm/tools/clang/lib/Basic$ /usr/lib/gcc/x86_64

[Bug tree-optimization/36524] regression: crash when compiling IdentifierTable.cpp

2008-06-13 Thread edwintorok at gmail dot com
--- Comment #4 from edwintorok at gmail dot com 2008-06-13 12:01 --- (In reply to comment #3) Can you delete the preprocessed libstdc++ includes from /usr/lib? Sure, I only had these: $ find /usr/lib/ /usr/local/lib -name *.gch /usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/include/c

[Bug tree-optimization/36524] regression: crash when compiling IdentifierTable.cpp

2008-06-13 Thread edwintorok at gmail dot com
--- Comment #5 from edwintorok at gmail dot com 2008-06-13 13:37 --- I have built with --enable-checking=yes (instead of all), because all was taking too long. It looks like a value of a pointer is invalid. See the gdb session below. What should I do next to help debug the problem

[Bug c/37178] New: false positive with -Wstrict-overflow=2 on code not involving signed overflow

2008-08-20 Thread edwintorok at gmail dot com
Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: edwintorok at gmail dot com GCC build triplet: x86_64-linux-gnu GCC host triplet: x86_64-linux-gnu GCC target triplet: x86_64-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37178

[Bug c/37178] false positive with -Wstrict-overflow=2 on code not involving signed overflow

2008-08-20 Thread edwintorok at gmail dot com
--- Comment #1 from edwintorok at gmail dot com 2008-08-20 17:52 --- Created an attachment (id=16115) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16115action=view) reduced testcase the testcase is reduced from clamav's scanners.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi

[Bug c/37186] New: -Wno-error=pointer-sign does not work

2008-08-21 Thread edwintorok at gmail dot com
: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: edwintorok at gmail dot com GCC build triplet: Linux lightspeed2 2.6.26-1-amd64 #1 SMP Fri Aug 8 13:17:41 UTC 2 GCC host

[Bug c/37187] New: please provide a way to treat -pedantic as warning when using -Werror

2008-08-21 Thread edwintorok at gmail dot com
Version: 4.3.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: edwintorok at gmail dot com GCC build triplet: x86_64-linux-gnu GCC host triplet: x86_64-linux-gnu GCC

[Bug c/37187] please provide a way to treat -pedantic as warning when using -Werror

2008-08-21 Thread edwintorok at gmail dot com
--- Comment #1 from edwintorok at gmail dot com 2008-08-21 13:26 --- Also -fdiagnostics-show-option doesn't show that the error is coming from -pedantic: $ gcc -Werror -pedantic x.c -c -fdiagnostics-show-option cc1: warnings being treated as errors x.c: In function ‘foo’: x.c:10: error

[Bug c/37190] New: -Wredundant-decls -Wno-error=redundant-decls not working as expected

2008-08-21 Thread edwintorok at gmail dot com
ReportedBy: edwintorok at gmail dot com GCC build triplet: x86_64-linux-gnu GCC host triplet: x86_64-linux-gnu GCC target triplet: x86_64-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37190

[Bug c/37190] -Wredundant-decls -Wno-error=redundant-decls not working as expected

2008-08-21 Thread edwintorok at gmail dot com
--- Comment #3 from edwintorok at gmail dot com 2008-08-21 16:08 --- (In reply to comment #2) Thanks for the report anyway! Ok, when is GCC 4.4 scheduled to be released? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37190

[Bug c/37192] New: --combine problems with one source defining _GNU_SOURCE and the other one doesn't

2008-08-21 Thread edwintorok at gmail dot com
Product: gcc Version: 4.3.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: edwintorok at gmail dot com GCC build triplet: x86_64-linux-gnu GCC host

[Bug c/37192] --combine problems with one source defining _GNU_SOURCE and the other one doesn't

2008-08-21 Thread edwintorok at gmail dot com
--- Comment #1 from edwintorok at gmail dot com 2008-08-21 17:48 --- Created an attachment (id=16122) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16122action=view) preprocessed source Generated with: gcc --combine p1.c p2.c -c -save-temps -- http://gcc.gnu.org/bugzilla

[Bug c/37192] --combine problems with one source defining _GNU_SOURCE and the other one doesn't

2008-08-21 Thread edwintorok at gmail dot com
--- Comment #3 from edwintorok at gmail dot com 2008-08-21 17:52 --- (In reply to comment #2) This sounds like a glibc bug really. glibc's headers has invalid C in it :). why does --combine Because GCC checks that the prototypes are compatible across translational units

[Bug tree-optimization/37573] New: gcc-4.4 regression: incorrect code generation with -O1 -ftree-vectorize

2008-09-18 Thread edwintorok at gmail dot com
Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: edwintorok at gmail dot com GCC build triplet: x86_64

[Bug tree-optimization/37573] gcc-4.4 regression: incorrect code generation with -O1 -ftree-vectorize

2008-09-18 Thread edwintorok at gmail dot com
--- Comment #1 from edwintorok at gmail dot com 2008-09-18 17:30 --- Testcase: extern int printf (__const char *__restrict __format, ...); extern int strcmp (__const char *__s1, __const char *__s2); extern int puts (__const char *__s); typedef unsigned char uint8_t; typedef unsigned int

[Bug tree-optimization/37573] gcc-4.4 regression: incorrect code generation with -O1 -ftree-vectorize

2008-09-18 Thread edwintorok at gmail dot com
--- Comment #2 from edwintorok at gmail dot com 2008-09-18 17:31 --- Created an attachment (id=16357) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16357action=view) config.log for gcc 4.4 Some more system info: $ uname -a Linux debian 2.6.26-1-amd64 #1 SMP Wed Sep 10 15:31:12 UTC

[Bug libstdc++/42624] libstdc++ parallel mode deadlocks in barrier

2010-01-27 Thread edwintorok at gmail dot com
--- Comment #20 from edwintorok at gmail dot com 2010-01-27 12:35 --- Thanks to Jakub for the hints. This is not a bug in libstdc++/gcc: the problem is that fork() is called when we already have threads (due to openmp/libstdc++ parallel mode), and then you can call a limited number

[Bug tree-optimization/43280] New: gcc4.5 -m32 -O2: misoptimizes sha256!

2010-03-07 Thread edwintorok at gmail dot com
: misoptimizes sha256! Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: major Priority: P3 Component: tree-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: edwintorok at gmail dot com GCC build

  1   2   >