Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port code to build using GCC. #67

Merged

Conversation

petterreinholdtsen
Copy link
Contributor

GCC complain with "sorry, unimplemented: non-trivial designated initializers
not supported" for the original struct initialiers. Rewrite code to
clear structs and assign individual members instead.

@petterreinholdtsen
Copy link
Contributor Author

With this patch in place, and by building with gcc instead of clang, I was able to get coz working in Debian unstable.

@petterreinholdtsen
Copy link
Contributor Author

See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55606 for the GCC bug report about this missing feature.

@paulmenzel
Copy link

I found two typos in the commit message. Otherwise it looks fine to me.

GCC complain with "sorry, unimplemented: non-trivial designated initializers

  • complains

not supported" for the original struct initialiers. Rewrite code to

  • initializers

@paulmenzel
Copy link

Please also add the version of the GCC you used.

GCC 6 complains with "sorry, unimplemented: non-trivial designated
initializers not supported/" for the original struct initializers.
Rewrite code to clear structs and assign individual members instead.

The designated initializers feature is only part of standard C, not
(at least not yet) part of standard C++.
@petterreinholdtsen
Copy link
Contributor Author

[Paul Menzel]

Please also add the version of the GCC you used.

Thank you for the review. I've updated the branch.

Happy hacking
Petter Reinholdtsen

@paulmenzel paulmenzel mentioned this pull request Aug 11, 2016
@ccurtsinger ccurtsinger merged commit e555fda into plasma-umass:master Aug 11, 2016
@petterreinholdtsen petterreinholdtsen deleted the gcc-initializers branch August 11, 2016 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants