Issue Details (XML | Word | Printable)

Key: PCC-346
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Anders Magnusson
Reporter: Nicolas Joly
Votes: 0
Watchers: 0
Operations

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

compiler error: allo: too many allocs

Created: 09/May/11 07:50 PM   Updated: 10/May/11 10:21 PM
Component/s: None
Affects Version/s: None
Fix Version/s: None

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  « Hide
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


 All   Comments   Change History      Sort Order: Descending order - Click to sort in ascending order
Anders Magnusson added a comment - 10/May/11 10:21 PM
Fixed now, thanks. It was a check that was too narrow that caused it.