Changeset b6f2e7ab for tests


Ignore:
Timestamp:
Sep 9, 2024, 5:15:32 PM (3 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
f5dbc8d
Parents:
5c6d439
Message:

Removed SizeofExpr::expr and AlignofExpr::expr, expressions that would be stored there are wrapped in TypeofType? and stored in the type field. Some special cases to hide the typeof in code generation were added. In addition, initializer length is calculated in more cases so that the full type of more arrays is known sooner. Other than that, most of the code changes were just stripping out the conditional code and checks no longer needed. Some tests had to be updated, because the typeof is not hidden in dumps and the resolver replaces known typeof expressions with the type. The extension case caused some concern but it appears that just hides warnings in the expression which no longer exists.

Location:
tests/.expect
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • tests/.expect/alloc-ERROR.txt

    r5c6d439 rb6f2e7ab  
    1111    ...to:
    1212      Name: dim
    13       Sizeof Expression on: Applying untyped:
     13      Sizeof Expression on: type-of expression Applying untyped:
    1414          Name: *?
    1515        ...to:
  • tests/.expect/extension.arm64.txt

    r5c6d439 rb6f2e7ab  
    465465    }
    466466    {
    467         ((void)__extension__ sizeof(3));
     467        ((void)__extension__ sizeof(signed int ));
    468468    }
    469469
     
    473473
    474474    {
    475         ((void)__extension__ __alignof__(__extension__ _X1ai_2));
     475        ((void)__extension__ __alignof__(signed int ));
    476476    }
    477477
  • tests/.expect/extension.x64.txt

    r5c6d439 rb6f2e7ab  
    465465    }
    466466    {
    467         ((void)__extension__ sizeof(3));
     467        ((void)__extension__ sizeof(signed int ));
    468468    }
    469469
     
    473473
    474474    {
    475         ((void)__extension__ __alignof__(__extension__ _X1ai_2));
     475        ((void)__extension__ __alignof__(signed int ));
    476476    }
    477477
  • tests/.expect/extension.x86.txt

    r5c6d439 rb6f2e7ab  
    465465    }
    466466    {
    467         ((void)__extension__ sizeof(3));
     467        ((void)__extension__ sizeof(signed int ));
    468468    }
    469469
     
    473473
    474474    {
    475         ((void)__extension__ __alignof__(__extension__ _X1ai_2));
     475        ((void)__extension__ __alignof__(signed int ));
    476476    }
    477477
Note: See TracChangeset for help on using the changeset viewer.