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 for merging graphite branch (before tuplification)


On Sun, 3 Aug 2008, Sebastian Pop wrote:

> On Sat, Jul 26, 2008 at 6:11 AM, Joseph S. Myers
> <joseph@codesourcery.com> wrote:
> > Two new .exp files added in the patch should be GPL v3 or later with the
> > current GPLv3 or later notice used in GCC, not GPL v2 or later.
> >
> > The new libraries required, and the associated configure options, need to
> > be documented in install.texi.
> >
> > I see you have
> >
> > +#ifdef HAVE_cloog
> > +  graphite_transform_loops ();
> > +#endif
> >
> > which would make the code generated depend on the libraries detected at
> > configure time.  This is a bad idea.  You should do one of two things:
> >
> > * Always require the library and give an error at configure time if not
> > detected.
> >
> > * Give an error if any command-line option that would require the library
> > is used but the library was not linked in.  In this case the testcases
> > need to be appropriately conditioned, if they aren't already.
> >
> 
> This second option is implemented in the attached patch that I
> committed to the graphite branch.

Where is the error in this patch?  By an error, I mean the compiler prints 
a message to stderr and exits with nonzero exit status if any unsupported 
option (-fgraphite or one of the options implying it) is passed; not that 
it puts something in a dump file.

-- 
Joseph S. Myers
joseph@codesourcery.com


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