constant comparisons with range and enumeration types
Original Reporter info from Mantis: FPCCore
-
Reporter name: FPC core team
Original Reporter info from Mantis: FPCCore
- Reporter name: FPC core team
Description:
The program passes the compiler but not the assembler. The fully
constant comparisons don't get optimized away but compiled into:
cmpb $1,$1
gas states that there is no according machine instruction.
If the code is changed to use a variable for the comparison,
the code works.
Additional information:
Reporter: Hartmut Hackmann
EMail: hartmut dot hackmann at t-online dot de
Mantis conversion info:
- Mantis ID: 2284
- OS: GO32V1
- Version: ?
- Fixed in version: 0.99.09