[Bug objc/108743] -fconstant-cfstrings not supported

2023-02-12 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108743

--- Comment #8 from Iain Sandoe  ---
(In reply to Andrew Pinski from comment #7)
> Hmm,
> https://inbox.sourceware.org/gcc-patches/B4F496F4-F31D-41D2-8942-
> 1f0aefbd7...@sandoe-acoustics.co.uk/
> 
> Seems didn't get installed even though it was approved ...

these things happen, I guess we can make it a darwin-specific driver option (as
Jakub says, the 'm' version is technically correct, but we have to accommodate
compatibility sometimes).

There is at least one other platform that I think it s using the NeXT library
(it is open sourced), so maybe it is an appropriate option for that platform
too.

[Bug objc/108743] -fconstant-cfstrings not supported

2023-02-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108743

--- Comment #7 from Andrew Pinski  ---
Hmm,
https://inbox.sourceware.org/gcc-patches/b4f496f4-f31d-41d2-8942-1f0aefbd7...@sandoe-acoustics.co.uk/

Seems didn't get installed even though it was approved ...

[Bug objc/108743] -fconstant-cfstrings not supported

2023-02-10 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108743

Jakub Jelinek  changed:

   What|Removed |Added

 CC||jakub at gcc dot gnu.org

--- Comment #6 from Jakub Jelinek  ---
(In reply to Pierre Ossman from comment #5)
> Could you consider adding -fconstant-cfstrings as an alias? It would make
> life easier for making build systems compiler agnostic.

As it is a machine specific option, -mconstant-cfstrings is right, if it was a
generic option, -f* would make sense, but it is not.
If the option is MacOS specific in clang too, then they just misnamed the
option.

[Bug objc/108743] -fconstant-cfstrings not supported

2023-02-10 Thread ossman at cendio dot se via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108743

--- Comment #5 from Pierre Ossman  ---
Could you consider adding -fconstant-cfstrings as an alias? It would make life
easier for making build systems compiler agnostic.

[Bug objc/108743] -fconstant-cfstrings not supported

2023-02-10 Thread ossman at cendio dot se via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108743

--- Comment #4 from Pierre Ossman  ---
I am indeed trying to compile for macOS. Specifically Qt5, which is designed
with just Xcode in mind.

[Bug objc/108743] -fconstant-cfstrings not supported

2023-02-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108743

--- Comment #3 from Andrew Pinski  ---
(In reply to Pierre Ossman from comment #2)
> Great news. And that is the same thing as clang's -fconstant-cfstrings?

yes

> 
> Unfortunately, I couldn't see -mconstant-cfstrings in gcc's documentation,
> but I may be looking in the wrong place.

and it is just missing.

Also are you trying to compile for darwin (Mac OS X) or some other target?
If some other target, then these options are not there.

[Bug objc/108743] -fconstant-cfstrings not supported

2023-02-09 Thread ossman at cendio dot se via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108743

--- Comment #2 from Pierre Ossman  ---
Great news. And that is the same thing as clang's -fconstant-cfstrings?

Unfortunately, I couldn't see -mconstant-cfstrings in gcc's documentation, but
I may be looking in the wrong place.

[Bug objc/108743] -fconstant-cfstrings not supported

2023-02-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108743

--- Comment #1 from Andrew Pinski  ---
The option is -mconstant-cfstrings, the documentation is slightly wrong.