public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* -mno-align-long-strings and -fformat-extensions
@ 2008-10-04 14:09 Unga
  2008-10-05  7:56 ` Unga
  0 siblings, 1 reply; 2+ messages in thread
From: Unga @ 2008-10-04 14:09 UTC (permalink / raw)
  To: gcc-help

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? 

Appreciate your reply very much.

Kind regards
Unga


      

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: -mno-align-long-strings and -fformat-extensions
  2008-10-04 14:09 -mno-align-long-strings and -fformat-extensions Unga
@ 2008-10-05  7:56 ` Unga
  0 siblings, 0 replies; 2+ messages in thread
From: Unga @ 2008-10-05  7:56 UTC (permalink / raw)
  To: gcc-help

--- 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


      

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-10-05  7:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-04 14:09 -mno-align-long-strings and -fformat-extensions Unga
2008-10-05  7:56 ` Unga

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).