Author Topic: GCC 4.2  (Read 9819 times)

Offline jmccay

  • Almost regular
  • **
  • Posts: 202
GCC 4.2
« on: May 17, 2007, 02:59:34 am »
GCC 4.2 has been released (May 13, 2007).  http://gcc.gnu.org/gcc-4.2/  Has anyone tried it yet?  GCC 4.2 was supposed to be the first release that included the patch to fix the many errors produced when compiling wxWidgets.

jmccay
OS: WinXP, Win98 SE, & sometimes Linux

a little light reading from the wxWidgets 2.6.2 readme: A detailed 2000-page reference manual is supplied in HTML, PDF and Windows Help form: see the docs hierarchy.

Offline TDragon

  • Lives here!
  • ****
  • Posts: 943
    • TDM-GCC
Re: GCC 4.2
« Reply #1 on: May 17, 2007, 03:21:22 am »
GCC 4.2 was supposed to be the first release that included the patch to fix the many errors produced when compiling wxWidgets.
Where did you hear this? And for that matter, what do you mean by many errors? wxWidgets compiles with many warnings, but only a few errors with an unpatched GCC 4. Most of the warnings are gone when you use "-Wno-attributes".

At any rate, I have built GCC 4.2 (look for a link in my sig sometime in the next few days), and it does still require a patch in order to compile wxWidgets successfully.
https://jmeubank.github.io/tdm-gcc/ - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: GCC 4.2
« Reply #2 on: May 17, 2007, 03:42:32 am »
GCC 4.2 was supposed to be the first release that included the patch to fix the many errors produced when compiling wxWidgets.

GCC 4.2 was supposed to the first of the GCC 4 line that the minGW team thought worth trying to get it working as an minGW built product.

GCC 4.3 is supposed to the first of the GCC 4 line that supports minGW as an secondary platform. This should mean that no patches should be needed to make minGW version of GCC 4.3.

Tim S
« Last Edit: May 22, 2007, 01:31:21 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline jmccay

  • Almost regular
  • **
  • Posts: 202
Re: GCC 4.2
« Reply #3 on: May 22, 2007, 01:15:36 am »
GCC 4.2 was supposed to be the first release that included the patch to fix the many errors produced when compiling wxWidgets.
Where did you hear this? And for that matter, what do you mean by many errors? wxWidgets compiles with many warnings, but only a few errors with an unpatched GCC 4. Most of the warnings are gone when you use "-Wno-attributes".

At any rate, I have built GCC 4.2 (look for a link in my sig sometime in the next few days), and it does still require a patch in order to compile wxWidgets successfully.

I meant the warnings.  I have not tried GCC 4.  There was a patch (issue: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20345  patch {from the bottom of the page}: http://gcc.gnu.org/ml/gcc-patches/2006-06/msg01511.html).  That was supposed to fix the "type attributes are honored only at type definition" warning problem.  I had previous mentioned in a previous post the patch http://forums.codeblocks.org/index.php/topic,3422.15.html.  I probably should mentioned the previous post in my post.

jmccay
OS: WinXP, Win98 SE, & sometimes Linux

a little light reading from the wxWidgets 2.6.2 readme: A detailed 2000-page reference manual is supplied in HTML, PDF and Windows Help form: see the docs hierarchy.

Offline TDragon

  • Lives here!
  • ****
  • Posts: 943
    • TDM-GCC
Re: GCC 4.2
« Reply #4 on: May 22, 2007, 01:23:11 am »
The specific warning you refer to is gone, but further warnings still remain (some of which, as before, can be disabled with -Wno-attributes).
https://jmeubank.github.io/tdm-gcc/ - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

Offline snija

  • Multiple posting newcomer
  • *
  • Posts: 20
Re: GCC 4.2
« Reply #5 on: May 24, 2007, 06:19:29 am »
hi, dear 20-40, could you please make a libgomp.a which static links to pthread-win32 static lib (make make clean GC-static)?
thank you.

Offline snija

  • Multiple posting newcomer
  • *
  • Posts: 20
Re: GCC 4.2
« Reply #6 on: May 24, 2007, 03:46:14 pm »
That`s cool, thank you very much, now for small program i need not to distribute pthreadGC2.dll with it.
It works well with pthread_win32_process_attach_np () and pthread_win32_process_deattach_np ().
« Last Edit: May 24, 2007, 07:50:12 pm by snija »

Offline snija

  • Multiple posting newcomer
  • *
  • Posts: 20
Re: GCC 4.2
« Reply #7 on: May 25, 2007, 03:13:20 am »
Does anyone know the x86_64-pc-mingw32 build (not only headers)?