[Bug preprocessor/91517] Pragma expansion in variadic macro reorders pragmas and breaks code

2023-10-30 Thread lhyatt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91517 Lewis Hyatt changed: What|Removed |Added CC||duparq at free dot fr --- Comment #7 from

[Bug preprocessor/91517] Pragma expansion in variadic macro reorders pragmas and breaks code

2023-10-02 Thread lhyatt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91517 Lewis Hyatt changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug preprocessor/91517] Pragma expansion in variadic macro reorders pragmas and breaks code

2020-01-29 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91517 Martin Liška changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug preprocessor/91517] Pragma expansion in variadic macro reorders pragmas and breaks code

2019-08-23 Thread paboyle at ph dot ed.ac.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91517 --- Comment #5 from Peter Boyle --- Hi Jakub, The difference between these two cases (one maintaining the pragma in right place, the other note) suggested a viable work around in the code. I can eliminate the extra naked_for macro and (with

[Bug preprocessor/91517] Pragma expansion in variadic macro reorders pragmas and breaks code

2019-08-23 Thread paboyle at ph dot ed.ac.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91517 --- Comment #4 from Peter Boyle --- Hi Jakob, thanks for looking at this. I'm trying to cut down a fail in 100k line of code package to the minimal thing that I can submit. www.github.com/paboyle/Grid Is the original package; WITH -fopenmp

[Bug preprocessor/91517] Pragma expansion in variadic macro reorders pragmas and breaks code

2019-08-23 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91517 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #3

[Bug preprocessor/91517] Pragma expansion in variadic macro reorders pragmas and breaks code

2019-08-21 Thread paboyle at ph dot ed.ac.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91517 --- Comment #2 from Peter Boyle --- GCC preprocessor moves location of _Pragma operator in sequence in a variadic macro: Simpler case: #define thread_for( i, num, ... ) for ( uint64_t i=0;i" # 1 "" # 1 "tmp.cc" #pragma omp critical # 3

[Bug preprocessor/91517] Pragma expansion in variadic macro reorders pragmas and breaks code

2019-08-21 Thread paboyle at ph dot ed.ac.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91517 --- Comment #1 from Peter Boyle --- Also occurs on 7.4.0, 8.3.0 gcc-7 (Homebrew GCC 7.4.0_2) 7.4.0 gcc-8 (Homebrew GCC 8.3.0) 8.3.0