<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en" style='--code-editor-font: var(--default-mono-font, "Menlo"), DejaVu Sans Mono, Liberation Mono, Consolas, Ubuntu Mono, Courier New, andale mono, lucida console, monospace;'>
<head>
<meta content="text/html; charset=US-ASCII" http-equiv="Content-Type">
<title>
GitLab
</title>

<style data-premailer="ignore" type="text/css">
a { color: #1068bf; }
</style>

<style>img {
max-width: 100%; height: auto;
}
body {
font-size: 0.875rem;
}
body {
-webkit-text-shadow: rgba(255,255,255,0.01) 0 0 1px;
}
body {
font-family: var(--default-regular-font, -apple-system),BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans",Ubuntu,Cantarell,"Helvetica Neue",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; font-size: inherit;
}
</style>
</head>
<body style='font-size: inherit; -webkit-text-shadow: rgba(255,255,255,0.01) 0 0 1px; font-family: var(--default-regular-font, -apple-system),BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans",Ubuntu,Cantarell,"Helvetica Neue",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";'>
<div class="content">

<p style="color: #777777;">
<a href="https://gitlab.com/DimitriPapadopoulos">Dimitri Papadopoulos Orfanos</a>
commented on a
<a href="https://gitlab.com/gnutls/gnutls/-/issues/1377#note_1394360444">discussion</a>:
</p>
<div class="md" style="color: #333238; word-wrap: break-word;">
<p dir="auto" style="color: #333238; margin: 0 0 16px;" align="initial">Perhaps this line?</p>
<p dir="auto" style="color: #333238; margin: 0 0 16px;" align="initial"><a href="https://gitlab.com/gnutls/gnutls/-/blob/0263dec937e02ab71fd9cb158fa69acf7c374481/configure.ac#L205-L210" style="margin-top: 0;"><strong style="font-weight: bold; margin-top: 0;">configure.ac</strong></a><br>
Line 205 to 210 in <a href="https://gitlab.com/gnutls/gnutls/-/commit/0263dec937e02ab71fd9cb158fa69acf7c374481" data-reference-type="commit" data-original="0263dec9" data-link="false" data-link-reference="false" data-project="179611" data-commit="0263dec937e02ab71fd9cb158fa69acf7c374481" data-container="body" data-placement="top" title="Merge branch 'wip/dueno/external-psk-importer' into 'master'" class="gfm gfm-commit has-tooltip" style='font-family: var(--default-mono-font, "Menlo"),"DejaVu Sans Mono","Liberation Mono","Consolas","Ubuntu Mono","Courier New","andale mono","lucida console",monospace; font-variant-ligatures: none; font-size: 95%;'>0263dec9</a></p>
<div class="gl-relative markdown-code-block js-markdown-code">
<pre data-canonical-lang="c" class="code highlight js-syntax-highlight language-c" lang="c" v-pre="true" style='display: block; font-size: 0.875rem; color: #333238; line-height: 1.6em; overflow-x: auto; border-radius: 4px; position: relative; font-family: var(--default-mono-font, "Menlo"),"DejaVu Sans Mono","Liberation Mono","Consolas","Ubuntu Mono","Courier New","andale mono","lucida console",monospace; word-break: break-all; word-wrap: break-word; background-color: #fbfafd; margin: 0 0 16px; padding: 12px; border: 1px solid #dcdcde;'><code style='font-size: 0.875rem; color: inherit; word-wrap: normal; word-break: keep-all; background-color: inherit; border-radius: 4px; white-space: pre; margin-top: 0; font-family: var(--default-mono-font, "Menlo"),"DejaVu Sans Mono","Liberation Mono","Consolas","Ubuntu Mono","Courier New","andale mono","lucida console",monospace; overflow-wrap: normal; padding: unset;'><span id="LC1" class="line" lang="c" style="margin-top: 0;"><span class="cp" style="margin-top: 0;"># Check if the assembler supports -march=all</span></span>
<span id="LC2" class="line" lang="c"><span class="k" style="margin-top: 0;">if</span> <span class="n">test</span> <span class="s">"$hw_accel"</span> <span class="o">=</span> <span class="n">aarch64</span><span class="p">;</span> <span class="n">then</span></span>
<span id="LC3" class="line" lang="c">  <span class="n" style="margin-top: 0;">AARCH64_CCASFLAGS</span><span class="o">=</span><span class="s">"-Wa,-march=all"</span></span>
<span id="LC4" class="line" lang="c">  <span class="n" style="margin-top: 0;">AC_MSG_CHECKING</span><span class="p">([</span><span class="n">whether</span> <span class="n">the</span> <span class="n">compiler</span> <span class="n">supports</span> <span class="o">-</span><span class="n">Wa</span><span class="p">,</span><span class="o">-</span><span class="n">march</span><span class="o">=</span><span class="n">all</span><span class="p">])</span></span>
<span id="LC5" class="line" lang="c">  <span class="o" style="margin-top: 0;">:</span> <span class="o">></span> <span class="n">conftest</span><span class="p">.</span><span class="n">s</span></span>
<span id="LC6" class="line" lang="c">  <span class="k" style="margin-top: 0;">if</span> <span class="s">"$CCAS"</span> <span class="s">"$AARCH64_CCASFLAGS"</span> <span class="o">-</span><span class="n">c</span> <span class="n">conftest</span><span class="p">.</span><span class="n">s</span> <span class="o">>/</span><span class="n">dev</span><span class="o">/</span><span class="n">null</span> <span class="mi">2</span><span class="o">>&</span><span class="mi">1</span><span class="p">;</span> <span class="n">then</span></span></code></pre>
<copy-code></copy-code>
</div>
<p dir="auto" style="color: #333238; margin: 0 0 16px;" align="initial">According to <a href="https://reviews.llvm.org/D114677" rel="nofollow noreferrer noopener" target="_blank" style="margin-top: 0;"><gl-emoji title="gear" data-name="gear" data-unicode-version="4.1" style="margin-top: 0;">⚙</gl-emoji> D114677 [AArch64] Avoid crashing on invalid -Wa,-march= values</a>:</p>
<blockquote dir="auto" style="font-size: inherit; color: #535158; padding-top: 0.5rem; padding-bottom: 0.5rem; padding-left: 1.5rem; box-shadow: inset 4px 0 0 0 #dcdcde; border-top-width: 0; border-bottom-width: 0; border-right-width: 0; margin: 0.5rem 0 0;" align="initial">
<p style="color: inherit; line-height: 1.5; margin: 0;">As reported in <a href="https://bugs.freebsd.org/260078" rel="nofollow noreferrer noopener" target="_blank" style="margin-top: 0;">https://bugs.freebsd.org/260078</a>, the gnutls Makefiles
pass -Wa,-march=all to compile a number of assembly files. Clang does
not support this -march value, but because of a mistake in handling
the arguments, an unitialized Arg pointer is dereferenced, which can
cause a segfault.</p>
</blockquote>
</div>


</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #737278;">

<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/-/issues/1377#note_1394360444">view it on GitLab</a>.
<br>
You're receiving this email because of your account on <a target="_blank" rel="noopener noreferrer" href="https://gitlab.com">gitlab.com</a>. <a href="https://gitlab.com/-/sent_notifications/7cd03d3b2b635175b41bc5f6474b1b6d/unsubscribe" target="_blank" rel="noopener noreferrer">Unsubscribe</a> from this thread · <a href="https://gitlab.com/-/profile/notifications" target="_blank" rel="noopener noreferrer" class="mng-notif-link">Manage all notifications</a> · <a href="https://gitlab.com/help" target="_blank" rel="noopener noreferrer" class="help-link">Help</a>
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Issue","url":"https://gitlab.com/gnutls/gnutls/-/issues/1377#note_1394360444"}}</script>


</p>
</div>
</body>
</html>