Issue Details (XML | Word | Printable)

Key: PCC-316
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Anders Magnusson
Reporter: Fred J. Tydeman
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
pcc

ccom crashes due to SIGFPE

Created: 13/Apr/11 08:48 PM   Updated: 14/Aug/11 09:54 AM
Component/s: None
Affects Version/s: None
Fix Version/s: None

Environment: Intel Core i5 (64 bit); Linux Fedora Core 14 (64 bit); pcc of 2011/02/21


 Description  « Hide
Code similar to :

#define __STDC_WANT_DEC_FP__ /* Tell implementation that we want Decimal FP */
int main(void){
  void * rc1,rc2;
  void * ptrv2;
  ptrv2 = ((void *)&ptrv2) ;
  rc1 = (ptrv2 ++);
  rc2 = (ptrv2 --);
  return rc1 != rc2;
}

gets a core dump in the compiler. The automatic bug reporting tool on Linux says
process ccom was killed by signal 8 (SIGFPE). Since there is no floating-point in
my C program, that makes no sense to me.

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Anders Magnusson made changes - 14/Aug/11 09:51 AM
Field Original Value New Value
Assignee Anders Magnusson [ ragge ]
Anders Magnusson made changes - 14/Aug/11 09:54 AM
Status Open [ 1 ] Closed [ 6 ]
Resolution Fixed [ 1 ]