Thread: Warning: -malign-functions is obsolete ?

  1. #1
    Registered User
    Join Date
    May 2008

    Warning: -malign-functions is obsolete ?

    Hi all,

    I am using the <bitset> library. The complier compiles correctly but returns the following warning:

    -malign-functions is obsolete, use -falign-functions

    Is there anything I can or should do about it? Also, where can I find a discription of gcc-compiler CXXFLAGS such as: -fforce-addr, -funroll-loops, and others?

    Thanks a lot,
    Last edited by serge; 05-15-2008 at 03:25 AM.

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Farncombe, Surrey, England
    You can get detailed information about the -fXXXX options from the command "info gcc". Or here: (change version number to match your compiler version).

    -fforce-addr is documented for 3.x, but seems to have been removed in the latest compiler [I suspect it's now got heuristics to determine when to use this by default].

    And you probably want to change your compile options to -falign-functions instead -malign-functions.

    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. The biggest project I've worked on: ASCIIpOrtal
    By guesst in forum Projects and Job Recruitment
    Replies: 19
    Last Post: 07-21-2009, 04:42 AM
  2. File Server Help
    By lautarox in forum C Programming
    Replies: 146
    Last Post: 09-24-2008, 06:32 PM
  3. Replies: 9
    Last Post: 10-20-2007, 01:05 AM
  4. Compiler "Warnings"
    By Jeremy G in forum A Brief History of
    Replies: 24
    Last Post: 04-24-2005, 01:09 PM
  5. Errors
    By Rhidian in forum C Programming
    Replies: 10
    Last Post: 04-04-2005, 12:22 PM