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

Add __float128 #33

Merged
merged 3 commits into from
Jul 31, 2017
Merged

Add __float128 #33

merged 3 commits into from
Jul 31, 2017

Conversation

MaskRay
Copy link

@MaskRay MaskRay commented May 21, 2017

gcc-mirror/gcc@9b5c49e (circa gcc 7.1) references __float128 in stddef.h when __i386__ is defined. This breaks a lot packages (e.g. https://github.com/haskell/c2hs/issues/191 https://github.com/gtk2hs/gtk2hs/issues/200) depending on c2hs (which in turn depends on language-c).

  Syntax error !
  The symbol `__float128' does not fit here.

This pull request adds support for __float128 and corresponding qQwW floating point literal suffixes (https://gcc.gnu.org/onlinedocs/gcc/Floating-Types.html) to address the issue.

parse_dg regression tests are also updated.

`stddef.h` shipped by GCC 7.1.0 [1] adds when `__i386__` is defined.  This change breaks a lot packages depending on c2hs (which in turn depends on language-c).

[1]: gcc-mirror/gcc@9b5c49e
felixonmars added a commit to felixonmars/gtk2hs that referenced this pull request May 22, 2017
This patch is following the language-c patch at
visq/language-c#33

With this patch glib and others build fine with GCC 7.1.1.
@visq visq merged commit 2021974 into visq:master Jul 31, 2017
@jchia jchia mentioned this pull request Oct 2, 2017
@krakrjak krakrjak mentioned this pull request Nov 9, 2017
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.

2 participants