Changeset 366f5cd for src/GenPoly


Ignore:
Timestamp:
Jun 23, 2026, 1:57:51 PM (26 hours ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
9d7a19f
Parents:
45d0e65
Message:

differentiate between C _Alignof and gcc alignof

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/GenPoly/Box.cpp

    r45d0e65 r366f5cd  
    1010// Created On       : Thr Oct  6 13:39:00 2022
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Dec 14 17:42:17 2023
    13 // Update Count     : 7
     12// Last Modified On : Tue Jun 23 12:31:47 2026
     13// Update Count     : 9
    1414//
    1515
     
    265265                        kids.emplace_back( makeAlignTo( location,
    266266                                derefVar( location, sizeofParam ),
    267                                 new ast::AlignofExpr( location, ast::deepCopy( memberType ) )
     267                                new ast::AlignofExpr( location, ast::deepCopy( memberType ), ast::AlignofExpr::Alignof )
    268268                        ) );
    269269                }
     
    285285                kids.emplace_back( makeAssignMax( location,
    286286                        derefVar( location, alignofParam ),
    287                         new ast::AlignofExpr( location, ast::deepCopy( memberType ) ) ) );
     287                        new ast::AlignofExpr( location, ast::deepCopy( memberType ), ast::AlignofExpr::Alignof ) ) );
    288288        }
    289289        // Make sure the type is end-padded to a multiple of its alignment.
     
    343343                kids.emplace_back( makeAssignMax( location,
    344344                        derefVar( location, alignofParam ),
    345                         new ast::AlignofExpr( location, ast::deepCopy( memberType ) )
     345                        new ast::AlignofExpr( location, ast::deepCopy( memberType ), ast::AlignofExpr::Alignof )
    346346                ) );
    347347        }
     
    807807                        new ast::SizeofExpr( expr->location, ast::deepCopy( concrete ) ) );
    808808                extraArgs.emplace_back(
    809                         new ast::AlignofExpr( expr->location, ast::deepCopy( concrete ) ) );
     809                        new ast::AlignofExpr( expr->location, ast::deepCopy( concrete ), ast::AlignofExpr::Alignof ) );
    810810        }
    811811}
     
    17231723                alignofName( typeName ), getLayoutCType( transUnit() ),
    17241724                new ast::SingleInit( decl->location,
    1725                         new ast::AlignofExpr( decl->location, deepCopy( base ) )
     1725                        new ast::AlignofExpr( decl->location, deepCopy( base ), ast::AlignofExpr::Alignof )
    17261726                )
    17271727        );
     
    21992199                                new ast::SizeofExpr( location, ast::deepCopy( param ) ) );
    22002200                        args.emplace_back(
    2201                                 new ast::AlignofExpr( location, ast::deepCopy( param ) ) );
     2201                                new ast::AlignofExpr( location, ast::deepCopy( param ), ast::AlignofExpr::Alignof ) );
    22022202                }
    22032203        }
Note: See TracChangeset for help on using the changeset viewer.