public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/40935] [avr] conditional comparison uses short instead of char
[not found] <bug-40935-4@http.gcc.gnu.org/bugzilla/>
@ 2010-11-03 19:56 ` avr at gjlay dot de
2010-11-07 7:16 ` ian at airs dot com
1 sibling, 0 replies; 2+ messages in thread
From: avr at gjlay dot de @ 2010-11-03 19:56 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40935
Georg Lay <avr at gjlay dot de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |avr at gjlay dot de
--- Comment #1 from Georg Lay <avr at gjlay dot de> 2010-11-03 19:55:52 UTC ---
Obviously compiled with -O0, nothing to be expected from optimizers. Optimizing
avr-gcc-4.3.3 performs well.
Moreover, note that the two sequences are *not* equivalent due to C promotion
rules.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug target/40935] [avr] conditional comparison uses short instead of char
[not found] <bug-40935-4@http.gcc.gnu.org/bugzilla/>
2010-11-03 19:56 ` [Bug target/40935] [avr] conditional comparison uses short instead of char avr at gjlay dot de
@ 2010-11-07 7:16 ` ian at airs dot com
1 sibling, 0 replies; 2+ messages in thread
From: ian at airs dot com @ 2010-11-07 7:16 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40935
Ian Lance Taylor <ian at airs dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |ian at airs dot com
Resolution| |INVALID
--- Comment #2 from Ian Lance Taylor <ian at airs dot com> 2010-11-07 05:55:23 UTC ---
I agree with Georg that there does not seem to be a bug here. When I compile
with optimization this looks fine. Note that C states that all arithmetic
operations are done in the type "int", which for AVR is the same size as the
type "short" by default. This is done unless the optimizers can prove that it
is unnecessary.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-11-07 7:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-40935-4@http.gcc.gnu.org/bugzilla/>
2010-11-03 19:56 ` [Bug target/40935] [avr] conditional comparison uses short instead of char avr at gjlay dot de
2010-11-07 7:16 ` ian at airs dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).