From 747df1a35e5f9997e8d61a5d8bc3e0c62dbddb60 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 23 Oct 2003 13:58:43 +0000 Subject: [PATCH] Remove obsolete information about altering default optimization flags for gcc. Per comment from original author, Brian Gallew: "Ancient history. Kill it fast." --- doc/src/sgml/compiler.sgml | 77 -------------------------------------- doc/src/sgml/filelist.sgml | 3 +- doc/src/sgml/postgres.sgml | 3 +- 3 files changed, 2 insertions(+), 81 deletions(-) delete mode 100644 doc/src/sgml/compiler.sgml diff --git a/doc/src/sgml/compiler.sgml b/doc/src/sgml/compiler.sgml deleted file mode 100644 index b7c99f6d7a..0000000000 --- a/doc/src/sgml/compiler.sgml +++ /dev/null @@ -1,77 +0,0 @@ - - - - -Brian -Gallew - - -Transcribed 1998-02-12 - - -<application>gcc</application> Default Optimizations - - - - -Contributed by Brian Gallew (geek+@cmu.edu) - - - - - -Configuring gcc to use certain flags by default is a simple matter of -editing the -/usr/local/lib/gcc-lib/platform/version/specs -file. -The format of this file pretty simple. The file is broken into -sections, each of which is three lines long. The first line is -"*section_name:" (e.g. "*asm:"). -The second line is a list of flags, -and the third line is blank. - - - -The easiest change to make is to append -the desired default flags to the list in the appropriate section. As -an example, let's suppose that I have linux running on a '486 with gcc -2.7.2 installed in the default location. In the file -/usr/local/lib/gcc-lib/i486-linux/2.7.2/specs, 13 lines down I find -the following section: - -- ----------SECTION---------- -*cc1: - - -- ----------SECTION---------- - -As you can see, there aren't any default flags. If I always wanted -compiles of C code to use "-m486 -fomit-frame-pointer", I would -change it to look like: - -- ----------SECTION---------- -*cc1: -- -m486 -fomit-frame-pointer - -- ----------SECTION---------- - -If I wanted to be able to generate 386 code for another, older linux -box lying around, I'd have to make it look like this: - -- ----------SECTION---------- -*cc1: -%{!m386:-m486} -fomit-frame-pointer - -- ----------SECTION---------- - -This will always omit frame pointers, any will build 486-optimized -code unless -m386 is specified on the command line. - - - -You can actually do quite a lot of customization with the specs file. -Always remember, however, that these changes are global, and affect -all users of the system. - - - diff --git a/doc/src/sgml/filelist.sgml b/doc/src/sgml/filelist.sgml index be7050c5c8..23b51ca6a5 100644 --- a/doc/src/sgml/filelist.sgml +++ b/doc/src/sgml/filelist.sgml @@ -1,4 +1,4 @@ - + @@ -77,7 +77,6 @@ - diff --git a/doc/src/sgml/postgres.sgml b/doc/src/sgml/postgres.sgml index 80cb8ecef5..3059c63c97 100644 --- a/doc/src/sgml/postgres.sgml +++ b/doc/src/sgml/postgres.sgml @@ -1,5 +1,5 @@ -- 2.40.0