[Bug c++/41201] #pragma GCC target ("sse2") doesn't alter __SSE2__ in C++ (as it does in C)

2023-12-06 Thread gb.devel at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41201

Gwenole Beauchesne  changed:

   What|Removed |Added

 CC||gb.devel at gmail dot com

--- Comment #8 from Gwenole Beauchesne  ---
Hi, this is a duplicate of PR preprocessor/87299, which is now fixed for GCC
14.

[Bug c++/48026] #pragma optimize ignored for C++ for preprocessor

2023-12-06 Thread gb.devel at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48026

Gwenole Beauchesne  changed:

   What|Removed |Added

 CC||gb.devel at gmail dot com

--- Comment #5 from Gwenole Beauchesne  ---
Created attachment 56811
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56811&action=edit
Proposed patch against trunk

Here is a proposed patch against trunk, which includes a fix for PR
preprocessor/87299 (#pragma GCC target).

[Bug preprocessor/87299] #pragma GCC target behaves differently when using -save-temps

2023-12-06 Thread gb.devel at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87299

--- Comment #8 from Gwenole Beauchesne  ---
Hi, can you please consider a backport to GCC 13 branch? The patch applies
cleanly as is, but causes regressions that are further fixed with e45c564e (for
PR pch/112319).

GCC 13 is the first and most complete compiler for modern C++ (>= C++20)
support and readily available, or soon available, as the system compiler for
major distributions. This is useful to C++ projects that (debately) use
multiple wrappers for SIMD support (xsimd, simde, mipp, etc.), but without
correct support for runtime dispatching. So, using #pragma GCC target is a
handy solution for that.

Thanks.