CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

CCS 4104 Compiler Bug!
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
loupan



Joined: 22 Oct 2007
Posts: 21

View user's profile Send private message

PostPosted: Thu Mar 18, 2010 7:54 am     Reply with quote

I am seeing something very similar - see post:

http://www.ccsinfo.com/forum/viewtopic.php?t=41396&highlight=

Am I missing something? This seems like a serious problem.

Assume that I am writing software to control the cell gates in a prison.

I have two main routines:

Code:
lockdown_riot_in_progress ()   {  // lock all cells immdeiately

fire_detected_open_all_cells()  {  // let them all out


Couldn't it be a problem if the correct addresses are not getting generated!


And as in your problem, adding code or moving things around fixes one problem but at the expense of moving the problem someplace else.
monsters_inc



Joined: 18 Jan 2010
Posts: 14

View user's profile Send private message

PostPosted: Sat Mar 20, 2010 12:48 am     Reply with quote

Hi, loupan
In my case this problem exist only once and for now I search generated listing for address 0x20C.
loupan



Joined: 22 Oct 2007
Posts: 21

View user's profile Send private message

PostPosted: Sun Mar 21, 2010 9:45 am     Reply with quote

Hi Monsters_inc.

I too have gotten to the point where I check the listing to make sure that all CALL and RCALL addresses are legal values that have corresponding entries in the symbol table. I have written some UNIX utilities to help automate this.

This is extremely time consuming and frustrating.
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

Branch address bug still pending?
PostPosted: Sat Jun 04, 2011 9:37 am     Reply with quote

Hello,

do you have any indications, that the reported problem of
PCD sometimes generates arbitrary wrong branch target addresses
has been fixed in a specific compiler version? Or did you observe it in recent PCD versions?

I now have a case, where the bug can be reproduced with V4.099, but I'm not sure if it's gone with newer compilers.

As the problem is not listed in the "recent changes", a pessimistic assumption would be that the bug has never been recognized by CCS. Fortunately (?), many bugs have been silently removed.

Best regards,
Frank

P.S.: I just realized, that loupan reported wrong addresses for the PCH compiler. So it's either a different bug, or a very general one, affecting even different hardware platforms.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group