Find the answer to your Linux question:
Results 1 to 3 of 3
According to "http://gcc.gnu.org/gcc-4.3/changes.html", gcc 4.3 supports atomic built-in function "GCC can now use load-linked, store-conditional and sync instructions to implement atomic built-in functions such as __sync_fetch_and_add" However, I am still ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2007
    Posts
    26

    getting atomic built-in function on gcc3.4


    According to "http://gcc.gnu.org/gcc-4.3/changes.html", gcc 4.3 supports atomic built-in function
    "GCC can now use load-linked, store-conditional and sync instructions to implement atomic built-in functions such as __sync_fetch_and_add"

    However, I am still using gcc 3.4 on my Redhat EL4. How do I get this built-in function installed?

  2. #2
    Linux Engineer Segfault's Avatar
    Join Date
    Jun 2008
    Location
    Acadiana
    Posts
    877
    By upgrading GCC, and glibc, and your Linux possibly.

  3. #3
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,533
    You can install gcc 4.4 on EL5. I don't know about EL4 however. Check in your yum repository to see if it is listed. You can have any number of gcc versions installed on your system at once. I have 2.95, 3.4, 4.1, 4.4, and I just finished building and installing the latest, 4.5.1. My default is still 4.1, but I will probably change that to 4.4 since as you noted it has some good enhancements. 4.5.1 is the latest "bleading edge" compiler suite only released in the past few weeks. It took me a full day to build and test all the parts of it on my 8-core 3GHz E5450 system using the 4.4 compiler.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •