<< Back to previous view

[PCC-395] missing break statements in switch-case Created: 19/Jul/12  Updated: 19/Jul/12

Status: Closed
Project: pcc
Component/s: sparc64 target
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Martin Ettl Assignee: Unassigned
Resolution: Fixed Votes: 0


 Description   
Hello,

if found missing break statements in file spark64/code.c ( line 39):

switch (DEUNSIGN(sp->stype)) {
case CHAR: s = 1;
case SHORT: s = 2;
case INT:
case UNSIGNED: s = 4;
default: s = 8;
}

Is this on purpose?

Best regards

Ettl Martin


 Comments   
Comment by Iain Hibbert [ 19/Jul/12 07:07 PM ]
This was fixed some time ago with the following commit

  http://pcc.ludd.ltu.se/fisheye/changelog/pcc?cs=MAIN:ragge:20110623134125

this is not yet in a release version, but the -current CVS sources contain it
Generated at Thu Dec 25 01:49:37 CET 2014 using JIRA Enterprise Edition, Version: 3.13.1-#333.