public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/16699] New: assembler compares integers when char are supposed to be used
@ 2004-07-24 18:59 spiessensr at woodlandsnet dot co dot za
2004-07-24 19:11 ` [Bug c/16699] " pinskia at gcc dot gnu dot org
2004-10-31 15:19 ` [Bug other/16699] " pinskia at gcc dot gnu dot org
0 siblings, 2 replies; 3+ messages in thread
From: spiessensr at woodlandsnet dot co dot za @ 2004-07-24 18:59 UTC (permalink / raw)
To: gcc-bugs
#define acin PB1 // 0=input
#define PORTB_DDR 0x04
typedef unsigned char u08;
int main( void )
{
u08 k;
DDRB=PORTB_DDR;
// 1. this comparison results in undesired int operations
while ((PINB&_BV(acin))==0);
// 2. even when you typecast it
while ((unsigned char)(PINB&_BV(acin))==(unsigned char)0);
// 3. this works I expected no. 1 to work (??)
k=0;
while ((PINB&_BV(acin))==k);
}
--
Summary: assembler compares integers when char are supposed to be
used
Product: gcc
Version: 3.4.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: spiessensr at woodlandsnet dot co dot za
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16699
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c/16699] assembler compares integers when char are supposed to be used
2004-07-24 18:59 [Bug c/16699] New: assembler compares integers when char are supposed to be used spiessensr at woodlandsnet dot co dot za
@ 2004-07-24 19:11 ` pinskia at gcc dot gnu dot org
2004-10-31 15:19 ` [Bug other/16699] " pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-24 19:11 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-07-24 19:11 -------
This is not enough information, please read http://gcc.gnu.org/bugs.html and give all the information
which that page requests.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16699
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug other/16699] assembler compares integers when char are supposed to be used
2004-07-24 18:59 [Bug c/16699] New: assembler compares integers when char are supposed to be used spiessensr at woodlandsnet dot co dot za
2004-07-24 19:11 ` [Bug c/16699] " pinskia at gcc dot gnu dot org
@ 2004-10-31 15:19 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-31 15:19 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-31 15:19 -------
No feedback in 3 months (T+4 days).
--
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16699
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-10-31 15:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-24 18:59 [Bug c/16699] New: assembler compares integers when char are supposed to be used spiessensr at woodlandsnet dot co dot za
2004-07-24 19:11 ` [Bug c/16699] " pinskia at gcc dot gnu dot org
2004-10-31 15:19 ` [Bug other/16699] " pinskia at gcc dot gnu dot org
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).