You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
675 B

  1. --- a/auto/types/sizeof
  2. +++ b/auto/types/sizeof
  3. @@ -25,8 +25,14 @@ $NGX_INCLUDE_UNISTD_H
  4. $NGX_INCLUDE_INTTYPES_H
  5. $NGX_INCLUDE_AUTO_CONFIG_H
  6. +char object_code_block[] = {
  7. + '\n', 'e', '4', 'V', 'A',
  8. + '0', 'x', ('0' + sizeof($ngx_type)),
  9. + 'Y', '3', 'p', 'M', '\n'
  10. +};
  11. +
  12. int main(void) {
  13. - printf("%d", (int) sizeof($ngx_type));
  14. + printf("dummy use of object_code_block to avoid gc-section: %c", object_code_block[0]);
  15. return 0;
  16. }
  17. @@ -40,7 +46,7 @@ eval "$ngx_test >> $NGX_AUTOCONF_ERR 2>&
  18. if [ -x $NGX_AUTOTEST ]; then
  19. - ngx_size=`$NGX_AUTOTEST`
  20. + ngx_size=`sed -ne 's/^e4VA0x\(.\)Y3pM$/\1/p' < $NGX_AUTOTEST`
  21. echo " $ngx_size bytes"
  22. fi