<< Back to previous view

[PCC-346] compiler error: allo: too many allocs Created: 09/May/11  Updated: 10/May/11

Status: Resolved
Project: pcc
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Nicolas Joly Assignee: Anders Magnusson
Resolution: Fixed Votes: 0
Environment: NetBSD lanfeust.sis.pasteur.fr 5.99.51 NetBSD 5.99.51 (LANFEUST) #46: Mon May 9 11:21:30 CEST 2011 njoly@lanfeust.sis.pasteur.fr:/local/src/NetBSD/obj.amd64/sys/arch/amd64/compile/LANFEUST amd64
pcc 1.1.0.DEVEL 20110509 for x86_64-unknown-netbsd5.99.51, njoly@lanfeust.sis.pasteur.fr


 Description   
Conversion from float to unsigned long leads to a compiler error:

njoly@lanfeust [~]> cat convert.c
int main() {
  float f = 2.2;
  unsigned long lu = f;
  return 0; }
njoly@lanfeust [~]> pcc -o /dev/null convert.c; echo $?
convert.c, line 4: compiler error: allo: too many allocs
1
njoly@lanfeust [~]> gcc -o /dev/null convert.c; echo $?
0


 Comments   
Comment by Anders Magnusson [ 10/May/11 10:21 PM ]
Fixed now, thanks. It was a check that was too narrow that caused it.
Generated at Sat Nov 01 09:30:15 CET 2014 using JIRA Enterprise Edition, Version: 3.13.1-#333.