This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: -mno-align-long-strings and -fformat-extensions
- From: Unga <unga888 at yahoo dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Sun, 5 Oct 2008 00:55:58 -0700 (PDT)
- Subject: Re: -mno-align-long-strings and -fformat-extensions
- Reply-to: unga888 at yahoo dot com
--- On Sat, 10/4/08, Unga <unga888@yahoo.com> wrote:
> From: Unga <unga888@yahoo.com>
> Subject: -mno-align-long-strings and -fformat-extensions
> To: gcc-help@gcc.gnu.org
> Date: Saturday, October 4, 2008, 10:09 PM
> Hi all
>
> I'm trying to compile the FreeBSD kernel on i386 using
> gcc version 4.3.1.
>
> I'm getting following compile error for
> /usr/src/sys/i386/i386/genassym.c :
> cc1: error: unrecognized command line option
> "-mno-align-long-strings"
> cc1: error: unrecognized command line option
> "-fformat-extensions"
> *** Error code 1
>
> I have following queries regarding this:
>
> 1. Does this means above options are not compatible with
> gcc version 4.3.1?
>
> 2. What are the implications if I remove above options from
> kernel sources and recompile?
>
I found some more info, FreeBSD has modified the GCC to support above functions:
-mno-align-long-strings
Do not align long strings specially
-fformat-extensions
Allow FreeBSD kernel-specific printf format specifiers
So, what is the option I can use instead -mno-align-long-strings to get the same functionality?
Best regards
Unga