main/gcc: fix wrong code when returning padded struct

bug report https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93402
Status Job ID Name Coverage
  Lint
failed #40181
x86_64 docker-alpine allowed to fail
lint

00:00:34

 
  Build
failed #40186
aarch64 ci-build docker-alpine
build-aarch64

00:02:00

failed #40187
armv7 ci-build docker-alpine
build-armv7

00:02:15

failed #40185
ppc64le ci-build docker-alpine
build-ppc64le

00:01:14

failed #40184
s390x ci-build docker-alpine
build-s390x

00:01:02

failed #40183
x86 ci-build docker-alpine
build-x86

00:01:31

failed #40182
x86_64 ci-build docker-alpine
build-x86_64

00:01:26

 
Name Stage Failure
failed
build-armv7 Build
No job log
failed
build-aarch64 Build
No job log
failed
build-x86 Build
No job log
failed
build-x86_64 Build
No job log
failed
build-ppc64le Build
No job log
failed
build-s390x Build
No job log
failed
lint Lint
No job log