Author Topic: C::B adn Mingw: compiler options  (Read 2258 times)

Offline nenin

  • Almost regular
  • **
  • Posts: 139
C::B adn Mingw: compiler options
« 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?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13438
    • Travis build status
Re: C::B adn Mingw: compiler options
« Reply #1 on: December 28, 2020, 09:33:02 am »
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!]

Offline gd_on

  • Lives here!
  • ****
  • Posts: 660
Re: C::B adn Mingw: compiler options
« Reply #2 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 ...)
Windows 10 64 bits (21H1), svn C::B (last version or almost!), wxWidgets 3.1.5, Msys2 Compilers 10.3.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (sjlj, posix in C:\msys64\mingw32).

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13438
    • Travis build status
Re: C::B adn Mingw: compiler options
« Reply #3 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.
(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!]

Offline nenin

  • Almost regular
  • **
  • Posts: 139
Re: C::B adn Mingw: compiler options
« Reply #4 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.

Offline nenin

  • Almost regular
  • **
  • Posts: 139
Re: C::B adn Mingw: compiler options
« Reply #5 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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13438
    • Travis build status
Re: C::B adn Mingw: compiler options
« Reply #6 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?
(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!]

Offline nenin

  • Almost regular
  • **
  • Posts: 139
Re: C::B adn Mingw: compiler options
« Reply #7 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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13438
    • Travis build status
Re: C::B adn Mingw: compiler options
« Reply #8 on: December 29, 2020, 03:04:22 pm »
Is this related to C::B in any way?
(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!]

Offline nenin

  • Almost regular
  • **
  • Posts: 139
Re: C::B adn Mingw: compiler options
« Reply #9 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.
« Last Edit: December 29, 2020, 04:23:56 pm by nenin »