This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gcc 3.0: -m68000 -fpic generates invalid code


"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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]