[MacPorts] #63490: libdazzle @3.38.0_0: Static assert failure on PowerPC

MacPorts noreply at macports.org
Thu Sep 16 02:03:03 UTC 2021


#63490: libdazzle @3.38.0_0: Static assert failure on PowerPC
-------------------------+--------------------
  Reporter:  evanmiller  |      Owner:  (none)
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.7.1
Resolution:              |   Keywords:
      Port:  libdazzle   |
-------------------------+--------------------

Comment (by kencu):

 interesting:
 {{{
 $ cat packcheck.c
 #include <stdio.h>
 #include <stdint.h>

 int main(void) {

     #pragma option align=mac68k
     typedef struct
     {
     uint32_t id : 32;
     uint32_t  pos : 16;
     } KenStruct;

     KenStruct mystruct;

     printf("%i\n\n", sizeof(KenStruct));
     return 0;
 }
 }}}

 {{{
 $ gcc-mp-7 packcheck.c
 $ ./a.out
 8
 }}}
 {{{
 $ gcc-apple-4.2 packcheck.c
 $ ./a.out
 8
 }}}

 {{{
 $ gcc-apple-4.2 -malign-mac68k packcheck.c
 $ ./a.out
 6
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/63490#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list