This is the mail archive of the gcc-bugs@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: Bootstrap failure on cygwin - undefined reference to `ix86_valid_decl_attribute_p'


"Joseph S. Myers" wrote:
> 
> On Thu, 28 Jun 2001, Neil Booth wrote:
> 
> > Sorry for the breakage.  I'm going to commit this as obvious without a
> > bootstrap, I'm pretty sure it fixes it.
> >
> > Neil.
> >
> > config:
> >       * i386/i386.c (ix86_valid_type_attribute_p): Give external
> >       linkage, move declaration to...
> >       * i386/i386-protos.h: ...here.
> 
> Surely part of the problem here (or at least a related problem) is that
> the target initializer in i386.c isn't using the cygwin versions of the
> functions when necessary?
Joseph I agree Neils patch has broken the cygwin toolchain because the
cygwin specific validation routines arn't being used on cygwin.

The patch just allows a broken cygwin toolchain to be built.

I think the solution is to move the definition of the standard x86
TARGET_xxx macros from i386.c to i386.h and then have cygwin.h override
the standard x86 macros as needed.


> 
> The old VALID_MACHINE_* macros still seem to be defined in alpha/vms.h and
> i386/cygwin.h - and those need to be moved over to the new scheme.
> 
> --
> Joseph S. Myers
> jsm28@cam.ac.uk

Graham


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