News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

C::B adn Mingw: compiler options

Started by nenin, December 28, 2020, 07:53:49 AM

Previous topic - Next topic

nenin

I found on latest nighties kind of distortion of the compiler options tree (see attach.)
I wander is it issue of the nighties or my global config is somehow corrupted?

oBFusCATed

Can you be more exact? What is the problem?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

gd_on

I can't answer for the original author, but you can see that options -O1, -O2 ... are displayed two times : one without any comment, one with a comment. This is not new. I have seen that for a long time (and live with that without problems, but ...)
Windows 11 64 bits (25H2), svn C::B (last version or almost!), wxWidgets 3.3.2, Msys2 Compilers 16.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

oBFusCATed

These are passed to the linker I think, when doing LTO.

Generally someone should add a capability to show comboboxes here and probably specify a way to specify options which are compiler and linker or even if they depend on other options.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

nenin

Quote from: oBFusCATed on December 28, 2020, 09:33:02 AM
Can you be more exact? What is the problem?
A lot of "march" options  disappeared,  all  after "nocona" for Intel, for example.

nenin

Quote from: oBFusCATed on December 28, 2020, 12:28:50 PM
These are passed to the linker I think, when doing LTO.

Generally someone should add a capability to show comboboxes here and probably specify a way to specify options which are compiler and linker or even if they depend on other options.
Concerning compler-linker options I found a strange glitch, but cannot describe it clearly now. Problem is that -Wl,warp=symbol does not emitted properly by C::B. However looks like it not works properly under Win by any way.

oBFusCATed

Quote from: nenin on December 29, 2020, 10:35:18 AM
Problem is that -Wl,warp=symbol does not emitted properly by C::B.
What does this mean? Where have you added it? Example project?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

nenin

Looks like "--wrap=symbol" not working under windows/mingw gcc  by any way. I tried few examples from command line, and all were erratic.

oBFusCATed

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

nenin

#9
I cannot check it under Linux.
Under Win implementation of the option in ld does not work. It looked like that during compilation from CB gcc considered  this option as erratic or ignored it (depending of some altrerations), and from command line this option was accepted, but compilation ended with errors.
I suggest to drop this topic.