From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Shih-Ping Chan To: ecos-discuss@sources.redhat.com Subject: [ECOS] For GCCv3: recommend -fno-builtin and remove -fvtable-gc Date: Mon, 09 Jul 2001 18:35:00 -0000 Message-id: <20010710094111.A12594@cshihpin.dso.org.sg> X-SW-Source: 2001-07/msg00250.html Hi eCos team - I would like to make two suggestions for GCC3 [1] Make -fno-builtin a default command line option. This is to prevent unwanted optimisations of builtin functions at the default optimisation level of -g -O2. An example is the optimisation of printf and the consequent introduction of extra symbols like putchar and puts by GCCv3. This doesn't always link as some installs supply printf but not putchar/puts. An example is the target+template pc+redboot. At -O2 GCCv3 really seems to convert some printf to putchar/puts statements. This should have no untoward effect on GCC2.95. [2] -fvtable-gc is no longer supported by GCCv3 but I'm not sure what implications that has. Cheers Richard Chan