public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* some strange instructions appear after optimization
@ 2003-03-13  1:54 Huimin Cui
  2003-03-13  7:07 ` Oscar Fuentes
  0 siblings, 1 reply; 2+ messages in thread
From: Huimin Cui @ 2003-03-13  1:54 UTC (permalink / raw)
  To: gcc-help

Hi,
   I have made a cross compiler for mipsel-linux, it runs well except that when I compile some programs with the option -O2 some strange instuctions appear.The following is the detail:
   If I choose -O1 instead of -O2,it is normal,the format of the lwl instuction are:
	lwl	$2,24($2)
but when I use -O2,the format changed into:
	lwl	$2,$LC59+3
or 
         lwl      $2,ga_pattern+3($2)
These formats cann't be recognized by the assembler,
giving the error message"Error: illegal operands `lwl'"
Very kind of you to give me some advice,thanks a lot.

      

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

* Re: some strange instructions appear after optimization
  2003-03-13  1:54 some strange instructions appear after optimization Huimin Cui
@ 2003-03-13  7:07 ` Oscar Fuentes
  0 siblings, 0 replies; 2+ messages in thread
From: Oscar Fuentes @ 2003-03-13  7:07 UTC (permalink / raw)
  To: gcc-help; +Cc: cuihm

"Huimin Cui" <cuihm@soft.cs.tsinghua.edu.cn> writes:

> Hi,
>    I have made a cross compiler for mipsel-linux, it runs well
>    except that when I compile some programs with the option -O2 some
>    strange instuctions appear.The following is the detail:
>    If I choose -O1 instead of -O2,it is normal,the format of the lwl instuction are:
> 	lwl	$2,24($2)
> but when I use -O2,the format changed into:
> 	lwl	$2,$LC59+3
> or 
>          lwl      $2,ga_pattern+3($2)
> These formats cann't be recognized by the assembler,
> giving the error message"Error: illegal operands `lwl'"
> Very kind of you to give me some advice,thanks a lot.

By your description, it is either a mistake setting the target CPU or
a gcc bug. As I know nothing about mipsel-linux, the only thing I can
do is to direct you to the gcc bug reporting page:

http://gcc.gnu.org/bugs.html

Please wait a day or two. Maybe some MIPS person can clarify things.

-- 
Oscar

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

end of thread, other threads:[~2003-03-13  3:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-13  1:54 some strange instructions appear after optimization Huimin Cui
2003-03-13  7:07 ` Oscar Fuentes

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