<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 28, 2021 at 1:11 PM Joel Sherrill <<a href="mailto:joel@rtems.org">joel@rtems.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 28, 2021 at 12:44 PM Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 28/01/2021 19:42, Sebastian Huber wrote:<br>
<br>
> +#define _CPU_Fatal_halt( _source, _error ) \<br>
> +  do { \<br>
> +    (void) _source; \<br>
> +    (void) _error; \<br>
> +    __coverity_panic__(); \<br>
> +  } while( 0 )<br>
<br>
I am not sure if #define works for the models. The documentation <br>
mentions only real functions and types. I guess we have to try it out.<br>
<br>
Which built-in defines are used by Coverity? For example, is __GNUC__ <br>
defined? What does it with __asm__ statements?<br></blockquote><div><br></div><div>No idea.</div><div><br></div><div>They appear to do their best to hide the documentation from open source </div><div>users as best I can tell. They send you to stackoverflow. They used to have</div><div>a support email. I did manage to find this but it wasn't easy (thanks Google)<br><br><a href="https://scan.coverity.com/models" target="_blank">https://scan.coverity.com/models</a><br></div><div><br></div><div>I have found some examples and guidance from other open source projects.</div><div>But not much. </div><div><br><a href="https://fossies.org/linux/xen/misc/coverity/model.c" target="_blank">https://fossies.org/linux/xen/misc/coverity/model.c</a></div><div><br></div><div>There is this old blog about some things commonly flagged in Linux and </div><div>what they did.<br><br><a href="https://www.synopsys.com/blogs/software-security/gimme-a-break/" target="_blank">https://www.synopsys.com/blogs/software-security/gimme-a-break/</a></div><div><br></div><div>Adding comments for intentional switch case fall throughs "nobreak" is properly </div><div>a good idea without crossing into adding Coverity specific disables. </div><div><br></div><div>Do you want Gedare or I to upload that and see what happens?</div></div></div></blockquote><div><br></div><div>I added your model and it is automatically queued up to re-run the analysis.  </div><div>I guess we will see if it fixes things.</div><div><br></div><div>Feel free to push it.</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div><br></div><div>--joel</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
-- <br>
embedded brains GmbH<br>
Herr Sebastian HUBER<br>
Dornierstr. 4<br>
82178 Puchheim<br>
Germany<br>
email: <a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a><br>
phone: +49-89-18 94 741 - 16<br>
fax:   +49-89-18 94 741 - 08<br>
<br>
Registergericht: Amtsgericht München<br>
Registernummer: HRB 157899<br>
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler<br>
Unsere Datenschutzerklärung finden Sie hier:<br>
<a href="https://embedded-brains.de/datenschutzerklaerung/" rel="noreferrer" target="_blank">https://embedded-brains.de/datenschutzerklaerung/</a><br>
<br>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a></blockquote></div></div>
</blockquote></div></div>