huangwei1024 / softart

Automatically exported from code.google.com/p/softart
Other
0 stars 0 forks source link

Alloca instruction generated on error position. #175

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Description:
  Now alloca was generated when declarator is visited. That means;
  "while(1) { int a; }" calling 'alloca' unlimited times.
  We will move alloca to the function start.

Original issue reported on code.google.com by wuye9036 on 26 Mar 2012 at 8:58

GoogleCodeExporter commented 8 years ago

Original comment by wuye9036 on 30 Mar 2012 at 2:19

GoogleCodeExporter commented 8 years ago

Original comment by wuye9036 on 4 Apr 2012 at 1:57

GoogleCodeExporter commented 8 years ago
This issue was updated by revision eef174fe3ac3.

SASL:
  Add test to reproduce alloca issue.

Original comment by wuye9036 on 5 Apr 2012 at 2:28

GoogleCodeExporter commented 8 years ago
This issue was updated by revision d27b6b0b8d51.

SASL:
  Add '.alloc' block at the front of function for allocation.
  Now process_intrinsics call clean_empty_block per intrinsic.

Original comment by wuye9036 on 5 Apr 2012 at 2:28

GoogleCodeExporter commented 8 years ago

Original comment by wuye9036 on 5 Apr 2012 at 2:29