<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/85579>85579</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            libc++ headers on powerpc* seems to include altivec.h which pollute namespace (vec_step) and cause GCC to fail to build
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            libc++
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          pinskia
      </td>
    </tr>
</table>

<pre>
    Reported a few times to other places but never forwarded here:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114369
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239266
https://lists.tetaneutral.net/pipermail/cfarm-users/2024-March/001074.html

The way GCC gets around this is by defining vec_step as function macro rather than as a macro which allows compiling as mentioned in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114369#c1 .
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJykkkuLpTwQhn9N3BRHNF7OceGiL_itvs0w-6ZMSpOZmEguR3p-_RC7ewaGXgwMiIWGegnP-2AIerVEI-seWfdcYIrK-XHXNnzXWMxOvo5faHc-kgSEhQ6IeqMA0YGLijzsBgUFmFMES3fysDh_oJckQZEn1jyw6plVDyrGPeQvPjE-rUKUq02l8yvj05zWH9oYZHwKyh0vc1pLsWrWTFqy5rmu26YfPouZ0xrKxRPNQf5dFm8G3vefZRkdYigjRbSUokdTWoqMT7veyW-oDeOTWNBvlxTIB8YnXvH28j96oRifqqqurm2p4mbe0t_eXxXBga_w39MTrBQDoHfJSohKB9AB5leQtGir7Qp3Ei8h0g4YYElWRO0sbCi8A48n7KjQ5lN8_30oLRSgMe4IINy2a5ODMMBGNq-TBG3h39nzRtRQFnJs5NAMWNBYX-vqWvGhuxVqFFIuRNjX1DZdP7TU9928kOwq0cn6SoUeM6yqqa_1UHfdrWxu2IphuTUzyZqoZW1FGXJpzH3LVyt0CInGW9ddh8LgTCacknJu9CwYfzwfnqX1Y166ZBlYW731-Csm6mho_L0DilCSD-As7O4gvwvGHyAQbafV2gqTJAGaqO8kSvUOeXfGpEhgcaOwoyBg_PbRGOMDoJUgMAU6u44OFtQmzzlpI4vkzfhHDzqqNJfCbdk-c_8Yl927bySyeyeDrNqJ4WcAAAD__zzcNIE">