<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - S390X and PPC64 architectures detection is wrong"
   href="https://bugs.webkit.org/show_bug.cgi?id=156337">156337</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>S390X and PPC64 architectures detection is wrong
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>WebKit Nightly Build
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Web Template Framework
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>tpopela&#64;redhat.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>After the <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Fails to build in Linux / PowerPC due to different ucontext_t definition"
   href="show_bug.cgi?id=156015">https://bugs.webkit.org/show_bug.cgi?id=156015</a> was committed it showed that the PPC64 detection is wrong as on the CPU(PPC) path was activated even for PPC64. The thing is that GCC defines __ppc__ even on PPC64 and not just on PPC(32). The same applies for S390X.

$  gcc -dM -E - &lt; /dev/null | grep PPC
#define _ARCH_PPCGR 1
#define __PPC64__ 1   &lt;---
#define _ARCH_PPCSQ 1
#define _ARCH_PPC 1
#define __PPC__ 1     &lt;---
#define _ARCH_PPC64 1</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>