Code::Blocks Forums

User forums => Help => Topic started by: nenin on December 28, 2020, 07:53:49 am

Title: C::B adn Mingw: compiler options
Post by: nenin on December 28, 2020, 07:53:49 am
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?
Title: Re: C::B adn Mingw: compiler options
Post by: oBFusCATed on December 28, 2020, 09:33:02 am
Can you be more exact? What is the problem?
Title: Re: C::B adn Mingw: compiler options
Post by: gd_on on December 28, 2020, 10:24:23 am
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 ...)
Title: Re: C::B adn Mingw: compiler options
Post by: 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.
Title: Re: C::B adn Mingw: compiler options
Post by: nenin on December 29, 2020, 10:30:53 am
Can you be more exact? What is the problem?
A lot of "march" options  disappeared,  all  after "nocona" for Intel, for example.
Title: Re: C::B adn Mingw: compiler options
Post by: nenin on December 29, 2020, 10:35:18 am
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.
Title: Re: C::B adn Mingw: compiler options
Post by: oBFusCATed on December 29, 2020, 10:40:47 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?
Title: Re: C::B adn Mingw: compiler options
Post by: nenin on December 29, 2020, 12:47:31 pm
Looks like "--wrap=symbol" not working under windows/mingw gcc  by any way. I tried few examples from command line, and all were erratic.
Title: Re: C::B adn Mingw: compiler options
Post by: oBFusCATed on December 29, 2020, 03:04:22 pm
Is this related to C::B in any way?
Title: Re: C::B adn Mingw: compiler options
Post by: nenin on December 29, 2020, 04:16:16 pm
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.
Title: Re: C::B adn Mingw: compiler options
Post by: omlk on December 29, 2020, 06:59:06 pm
https://stackoverflow.com/questions/13961774/gnu-gcc-ld-wrapping-a-call-to-symbol-with-caller-and-callee-defined-in-the-sam