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: Build problems; Please help


Hi Jagat,

:    Some More Updates on Build Problem. The assembler error was being 
: generated because the -mthumb option to gcc was not being passed
: down to the assembler.  Because the specs file didn't have that
: specified. So I added the line 
: 
: %{mthumb:-mthumb}
: 
: to the asm specs in the file
: /home/jbrahma/local/zip/build-egcs/gcc/specs 
: 
: But I don't know how the specs file is generated from the source
: files.  So If somebody know where to put the patch in the sources,
: please mail me.

The contents of asm specs are controlled by the definition of the
macro ASM_SPEC, which in this case is defined in config/arm/semi.h.


: May be this patch should be also applied to the CVS.  

Well no, because this is not the right way to fix the problem.  The
assembler should not need to be told that it is being passed Thumb
instructions.  Instead there should be directives in the code to tell
it that the following instructions are Thumb instructions and not ARM
instructions (which is its default).

This is supposed to be controlled by the definition of the ASM_APP_OFF
macro in config/arm/arm.h.  This is a grungy way to do it, but it does
work.  Or at least it does for other ARM targets.

I do not know why it is not working for you.  Maybe ASM_APP_OFF is
being redefined somewhere after its definition in arm.h ?

Cheers
	Nick

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