Hi! On 2022-07-07T15:56:28+0200, Tobias Burnus wrote: > On 07.07.22 15:26, Thomas Schwinge wrote: >> On 2022-07-01T23:08:16+0200, Tobias Burnus >> wrote: >>> Updated version attached – I hope I got everything right, but I start to >>> get tired, I am not 100% sure. >> ..., and so the obligatory copy'n'past-o;-) crept in: > ... >>> + if (tmp_decl != NULL_TREE) >>> + fn2 = IDENTIFIER_POINTER (DECL_NAME (requires_decl)); >>> + } >> ... here: tmp_decl' not 'requires_decl'. OK to push the attached >> "Fix one issue in OpenMP 'requires' directive diagnostics"? > Good that you spotted it and thanks for testing + fixing it! >> I'd even push that one "as obvious", but thought I'd ask whether you >> maybe have a quick idea about the XFAILs that I'm adding? (I'm otherwise >> not planning on resolving that issue at this time.) > > (This question relates to what's printed if there is no TRANSLATION_UNIT_DECL.) > [...] Thanks for the explanation, makes sense. > Regarding the xfail: I think it is fine to have this xfail, but as it is > clear why inform points to /tmp/cc*.o, you could reword the TODO to > state why it goes wrong. Done: TODO We're currently not streaming location information for the OpenMP directives used in 'requires-7-aux.c', so we're not seeing the source file name here (but a temporary '*.o' instead; for details, see ): { dg-note {requires-7-aux\.c' has 'unified_address'} {} { xfail *-*-* } 0 } ..., but we may still verify that the rest of the diagnostic is correct: { dg-note {' has 'unified_address'} {} { target *-*-* } 0 } With just that changed, I've pushed to master branch commit faa0c328ee65f0d6d65d6e20181d26e336071919 "Fix one issue in OpenMP 'requires' directive diagnostics", see attached. Grüße Thomas ----------------- Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 München; Gesellschaft mit beschränkter Haftung; Geschäftsführer: Thomas Heurung, Frank Thürauf; Sitz der Gesellschaft: München; Registergericht München, HRB 106955