pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@postgresql.org
Subject: pgsql: Build backend/parser/scan.l and interfaces/ecpg/preproc/pgc.l st
Date: Sat, 19 Mar 2016 16:07:43 +0000
Message-ID: <E1ahJPj-0002tP-4U@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Build backend/parser/scan.l and interfaces/ecpg/preproc/pgc.l standalone.

Now that we know about the %top{} trick, we can revert to building flex
lexers as separate .o files.  This is worth doing for a couple of reasons
besides sheer cleanliness.  We can narrow the scope of the -Wno-error flag
that's forced on scan.c.  Also, since these grammar and lexer files are
so large, splitting them into separate build targets should have some
advantages in build speed, particularly in parallel or ccache'd builds.

We have quite a few other .l files that could be changed likewise, but the
above arguments don't apply to them, so the benefit of fixing them seems
pretty minimal.  Leave the rest for some other day.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/72b1e3a21f0540ffa5c1f8f474b6c52097a368bb

Modified Files
--------------
src/backend/parser/Makefile              |  9 +++------
src/backend/parser/gram.y                | 10 ----------
src/backend/parser/scan.l                |  9 +++++----
src/interfaces/ecpg/preproc/Makefile     |  7 ++-----
src/interfaces/ecpg/preproc/ecpg.trailer |  8 --------
src/interfaces/ecpg/preproc/pgc.l        | 14 +++++++++++++-
6 files changed, 23 insertions(+), 34 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


view thread (5+ messages)  latest in thread

Message-ID: <E1ahJPj-0002tP-4U@gemulon.postgresql.org>
Permalink:  ../E1ahJPj-0002tP-4U@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ahJPj-0002tP-4U@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Build backend/parser/scan.l and interfaces/ecpg/preproc/pgc.l st
  In-Reply-To: <E1ahJPj-0002tP-4U@gemulon.postgresql.org>
  References: <E1ahJPj-0002tP-4U@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox