[Bug tree-optimization/33259] limited range of remainder operation can prove loop runs at most once

2011-09-05 Thread raeburn at raeburn dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33259 --- Comment #4 from Ken Raeburn 2011-09-05 22:45:28 UTC --- I did a little experimentation with git revision c3f18f1 and it looks like it does the right thing (optimizes away the calculations and returns a constant) with Andrew Pinski's simplifie

[Bug c/40627] not following "right-then-left" rule when compiling function pointers

2009-07-03 Thread raeburn at raeburn dot org
--- Comment #6 from raeburn at raeburn dot org 2009-07-03 20:06 --- Subject: Re: not following "right-then-left" rule when compiling function pointers On Jul 3, 2009, at 10:42, dj2con at gmail dot com wrote: > I don't know where you've been hiding for these pas

[Bug c/40627] not following "right-then-left" rule when compiling function pointers

2009-07-02 Thread raeburn at raeburn dot org
--- Comment #1 from raeburn at raeburn dot org 2009-07-03 06:45 --- (In reply to comment #0) > , but it does not seem to recognize that the following is also a valid > prototype: > > int count * ( demo_counter * self, int count_amt ); It isn't. > Following the tra

[Bug tree-optimization/33259] limited range of remainder operation can prove loop runs at most once

2008-08-16 Thread raeburn at raeburn dot org
--- Comment #2 from raeburn at raeburn dot org 2008-08-16 18:18 --- Just noting for future reference: I looked at the VRP results and that does seem to be where the optimization opportunity is missed; x%y with constant y is VARYING if x is, though it seems to me the result should be

[Bug c/33991] error while compiling pthread application

2007-11-04 Thread raeburn at raeburn dot org
--- Comment #2 from raeburn at raeburn dot org 2007-11-04 10:24 --- Subject: Re: New: error while compiling pthread application On Nov 3, 2007, at 18:32, bhvijaykumar at gmail dot com wrote: > srtp_impl.c:8: error: expected expression before ?{? token > srtp_impl.c:9: error: ex

[Bug c/16602] Spurious warnings about pointer to array -> const pointer to array conversion

2007-09-19 Thread raeburn at raeburn dot org
--- Comment #4 from raeburn at raeburn dot org 2007-09-19 17:27 --- (In reply to comment #3) > I'm not convinced by the explanation in the comment. A pointer to array *is* > compatible with the corresponding const pointer type; -Wcast-qual may apply > too, but that'

[Bug rtl-optimization/33258] guaranteed-true arithmetic test not optimized away depending on constant

2007-09-01 Thread raeburn at raeburn dot org
--- Comment #2 from raeburn at raeburn dot org 2007-09-02 01:43 --- After a little more experimentation, it appears that the signed-math cases that do get optimized are those with positive divisors that are not powers of two. If the divisors are powers of two (so that the operations

[Bug c/33270] Wrong evaluation

2007-08-31 Thread raeburn at raeburn dot org
--- Comment #2 from raeburn at raeburn dot org 2007-08-31 19:04 --- Subject: Re: New: Wrong evaluation On Aug 31, 2007, at 11:05, tim dot bruylants at vub dot ac dot be wrote: > The following code generates a "1" with gcc-4.1 and generates a "2" > with

[Bug tree-optimization/33259] limited range of remainder operation can prove loop runs at most once

2007-08-31 Thread raeburn at raeburn dot org
--- Comment #1 from raeburn at raeburn dot org 2007-08-31 08:06 --- Created an attachment (id=14145) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14145&action=view) C test case, description and assembly in comments -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33259

[Bug tree-optimization/33259] New: limited range of remainder operation can prove loop runs at most once

2007-08-31 Thread raeburn at raeburn dot org
at most once Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: raeburn at raeburn dot org GC

[Bug rtl-optimization/33258] guaranteed-true arithmetic test not optimized away depending on constant

2007-08-31 Thread raeburn at raeburn dot org
--- Comment #1 from raeburn at raeburn dot org 2007-08-31 07:53 --- Created an attachment (id=14144) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14144&action=view) C test case, description and assembly in comments -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33258

[Bug rtl-optimization/33258] New: guaranteed-true arithmetic test not optimized away depending on constant

2007-08-31 Thread raeburn at raeburn dot org
NCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: raeburn at raeburn dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc

[Bug rtl-optimization/33257] guaranteed-true test not optimized away when input values later used

2007-08-31 Thread raeburn at raeburn dot org
--- Comment #1 from raeburn at raeburn dot org 2007-08-31 07:46 --- Created an attachment (id=14143) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14143&action=view) C test case, with description & assembly in comments -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33257

[Bug rtl-optimization/33257] New: guaranteed-true test not optimized away when input values later used

2007-08-31 Thread raeburn at raeburn dot org
known Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: raeburn at raeburn dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC t

[Bug c/33219] Error in compiling when there is a function with a char parameter called before its declaration with inline parameters.

2007-08-30 Thread raeburn at raeburn dot org
--- Comment #14 from raeburn at raeburn dot org 2007-08-31 04:42 --- Subject: Re: Error in compiling when there is a function with a char parameter called before its declaration with inline parameters. On Aug 30, 2007, at 3:55, andreagrassi at sogeasoft dot com wrote: > A last th

[Bug c/33219] Error in compiling when there is a function with a char parameter called before its declaration with inline parameters.

2007-08-29 Thread raeburn at raeburn dot org
--- Comment #12 from raeburn at raeburn dot org 2007-08-29 21:51 --- Subject: Re: Error in compiling when there is a function with a char parameter called before its declaration with inline parameters. On Aug 29, 2007, at 13:39, andreagrassi at sogeasoft dot com wrote: > I accept

[Bug c/33219] Error in compiling when there is a function with a char parameter called before its declaration with inline parameters.

2007-08-29 Thread raeburn at raeburn dot org
--- Comment #6 from raeburn at raeburn dot org 2007-08-29 11:12 --- (In reply to comment #5) > I don't understand the error !! It's all so simple and I don't understand > why the compile works if I write in the second form (not inline parameter > declaration)

[Bug c/33167] Hex constant characters with \x escape not parsing correctly

2007-08-24 Thread raeburn at raeburn dot org
--- Comment #3 from raeburn at raeburn dot org 2007-08-24 19:45 --- (In reply to comment #2) > Yep, looks like you are right from the standard. That sucks then. I wish it > were the other way because I don't see a way to enter a literal single > character in hex follow

[Bug rtl-optimization/31888] inefficient comparison sequence - cond jump to label after immediately-following cond jump

2007-08-18 Thread raeburn at raeburn dot org
--- Comment #2 from raeburn at raeburn dot org 2007-08-18 19:25 --- In snapshot gcc-4.3-20070817 this test case seems to generate just the "je" instruction I was looking for. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31888

[Bug target/30315] optimize unsigned-add overflow test on x86 to use cpu flags from addl

2007-08-18 Thread raeburn at raeburn dot org
--- Comment #11 from raeburn at raeburn dot org 2007-08-18 17:55 --- Snapshot gcc-4.3-20070817 seems to do just fine with the sample code I supplied. Though perhaps I should've given a bigger test case... :-) One of the places where I'd want to check for overflow is in

[Bug c/33076] Warning when passing a pointer to a const array to a function that expects a pointer to a non-cast one

2007-08-14 Thread raeburn at raeburn dot org
--- Comment #2 from raeburn at raeburn dot org 2007-08-15 06:15 --- Subject: Re: New: Warning when passing a pointer to a const array to a function that expects a pointer to a non-cast one On Aug 14, 2007, at 23:45, martin dot ferrari at gmail dot com wrote: > Sorry if

[Bug c/33076] Warning when passing a pointer to a const array to a function that expects a pointer to a non-cast one

2007-08-14 Thread raeburn at raeburn dot org
--- Comment #1 from raeburn at raeburn dot org 2007-08-15 06:13 --- Subject: Re: New: Warning when passing a pointer to a const array to a function that expects a pointer to a non-cast one On Aug 14, 2007, at 23:45, martin dot ferrari at gmail dot com wrote: > Sorry if

[Bug c/31887] bad warning converting qualified void* to qualified array pointer

2007-08-14 Thread raeburn at raeburn dot org
--- Comment #3 from raeburn at raeburn dot org 2007-08-15 06:03 --- Section 6.7.3 says: "If the specification of an array type includes any type qualifiers, the element type is so-qualified, not the array type." The more I think about it, the more I think the compiler is t

[Bug target/30315] optimize unsigned-add overflow test on x86 to use cpu flags from addl

2007-06-06 Thread raeburn at raeburn dot org
--- Comment #6 from raeburn at raeburn dot org 2007-06-06 14:51 --- Subject: Re: optimize unsigned-add overflow test on x86 to use cpu flags from addl On Jun 6, 2007, at 04:15, ubizjak at gmail dot com wrote: > in config/i386/i386-modes.def, documentation says: > >Add

[Bug c/31887] bad warning converting qualified void* to qualified array pointer

2007-05-11 Thread raeburn at raeburn dot org
--- Comment #2 from raeburn at raeburn dot org 2007-05-11 08:05 --- Subject: Re: bad warning converting qualified void* to qualified array pointer On May 10, 2007, at 19:00, pinskia at gcc dot gnu dot org wrote: > I think only "void*" can be done with an implicat

[Bug rtl-optimization/31889] compiler misses opportunity to combine multiple identical function return paths

2007-05-10 Thread raeburn at raeburn dot org
--- Comment #3 from raeburn at raeburn dot org 2007-05-10 22:25 --- Subject: Re: compiler misses opportunity to combine multiple identical function return paths On May 10, 2007, at 2:13, steven at gcc dot gnu dot org wrote: > --- Comment #2 from steven at gcc dot gnu dot org 2

[Bug rtl-optimization/31889] compiler misses opportunity to combine multiple identical function return paths

2007-05-09 Thread raeburn at raeburn dot org
--- Comment #1 from raeburn at raeburn dot org 2007-05-10 06:04 --- Created an attachment (id=13539) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13539&action=view) sample source code, with assembly & comments -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31889

[Bug rtl-optimization/31889] New: compiler misses opportunity to combine multiple identical function return paths

2007-05-09 Thread raeburn at raeburn dot org
n AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: raeburn at raeburn dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31889

[Bug rtl-optimization/31888] inefficient comparison sequence - cond jump to label after immediately-following cond jump

2007-05-09 Thread raeburn at raeburn dot org
--- Comment #1 from raeburn at raeburn dot org 2007-05-10 05:51 --- Created an attachment (id=13538) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13538&action=view) source file, with comments on problem -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31888

[Bug rtl-optimization/31888] New: inefficient comparison sequence - cond jump to label after immediately-following cond jump

2007-05-09 Thread raeburn at raeburn dot org
nt: rtl-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: raeburn at raeburn dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31888

[Bug c/31887] New: bad warning converting qualified void* to qualified array pointer

2007-05-09 Thread raeburn at raeburn dot org
AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: raeburn at raeburn dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31887

[Bug target/30315] New: optimize unsigned-add overflow test on x86 to use cpu flags from addl

2006-12-27 Thread raeburn at raeburn dot org
ned at gcc dot gnu dot org ReportedBy: raeburn at raeburn dot org GCC build triplet: powerpc-apple-darwin GCC host triplet: powerpc-apple-darwin GCC target triplet: i386-unknown-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30315

[Bug tree-optimization/30314] New: optimize multiply-by-constant overflow (wrap) test

2006-12-27 Thread raeburn at raeburn dot org
on AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: raeburn at raeburn dot org GCC build triplet: powerpc-apple-darwin GCC host triplet: powerpc-apple-darwin GCC target triplet: i386-unknown-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30314

[Bug tree-optimization/28134] optimize redundant memset + assignment

2006-06-21 Thread raeburn at raeburn dot org
--- Comment #1 from raeburn at raeburn dot org 2006-06-22 03:30 --- s/I'm less would be allowed/I'm less confident would be allowed/ -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28134

[Bug tree-optimization/28134] New: optimize redundant memset + assignment

2006-06-21 Thread raeburn at raeburn dot org
) -- Summary: optimize redundant memset + assignment Product: gcc Version: unknown Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: tree-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy

[Bug rtl-optimization/23813] New: redundant register assignments not eliminated

2005-09-10 Thread raeburn at raeburn dot org
Summary: redundant register assignments not eliminated Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P2 Component: rtl-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: raeburn

[Bug rtl-optimization/23812] New: swapping DImode halves produces poor x86 register allocation

2005-09-10 Thread raeburn at raeburn dot org
poor x86 register allocation Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P2 Component: rtl-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: raeburn at raeburn dot org

[Bug rtl-optimization/23811] New: returning 64-bit value turns off some 32-bit optimizations

2005-09-10 Thread raeburn at raeburn dot org
AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: raeburn at raeburn dot org CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23811