Warning: -malign-functions is obsolete ?

This is a discussion on Warning: -malign-functions is obsolete ? within the C++ Programming forums, part of the General Programming Boards category; Hi all, I am using the <bitset> library. The complier compiles correctly but returns the following warning: -malign-functions is obsolete, ...

  1. #1
    Registered User
    Join Date
    May 2008
    Posts
    42

    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,
    SK
    Last edited by serge; 05-15-2008 at 03:25 AM.

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    You can get detailed information about the -fXXXX options from the command "info gcc". Or here:
    http://gcc.gnu.org/onlinedocs/gcc-4.3.0/gcc/ (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.

    --
    Mats
    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 Cprogramming.com
    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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21