This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: [patch] VAX ELF PIC support.


Matt Thomas <matt@3am-software.com> writes:

> On Sunday, September 21, 2003, at 10:18 PM, Richard Henderson wrote:
> 
> > On Sun, Sep 21, 2003 at 03:09:31PM -0700, Matt Thomas wrote:
> >> So the assembler can warn about non-PIC expressions.
> >>
> >> 	movl	$foo, %r0     generates a warning
> >> 	movab foo, %r0	does not.
> >
> > Any chance you could add an assembler directive to control
> > this instead?  Having to rely on specs is evil.
> 
> Why is this any more evil than using any other assembler switch
> (alpha for cpu extenstion, ppc for 32/64/altivec, etc.)?  All
> those "could be done with assembler directives" as well.  I don't
> see why an assembler directive is less evil than specs, especially
> give the current wide use of assembler specs.

It's not more evil, but that does not mean it is not evil...

The problem with assembler specs is that they are invariably buggy:
it's possible to fool the compiler into generating one kind of code
and yet passing the flags for the other kind to the assembler.

-- 
- Geoffrey Keating <geoffk@geoffk.org>


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