This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc 3.0: -m68000 -fpic generates invalid code
- To: "Alexander Aganichev" <AAganichev at hypercom dot com>
- Subject: Re: gcc 3.0: -m68000 -fpic generates invalid code
- From: Andreas Schwab <schwab at suse dot de>
- Date: 16 Jul 2001 13:29:06 +0200
- Cc: gcc at gcc dot gnu dot org
- References: <OF50654D99.33837105-ONC3256A8A.00429DB6@hypercom.com>
"Alexander Aganichev" <AAganichev@hypercom.com> writes:
|> gcc 3.0 generates invalid code when -m68000 -fpic options given. Here is sample test:
|>
|> test.c:
|> int foo(int a);
|> int foo2(int a) {
|> return foo(a);
|> }
|>
|> The output from compiler contains `bsr.l' instruction which is not available on m68000.
For which target did you configure the compiler? Note that gcc does not
support -fpic with -m68000 when using ELF, and I doubt that the m68k-sun2
target is still mature.
Adreas.
--
Andreas Schwab "And now for something
SuSE Labs completely different."
Andreas.Schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5