public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [patch] Move C front end to its own directory (1/3)
@ 2010-05-29 22:29 Steven Bosscher
  2010-05-30 19:51 ` Mark Mitchell
                   ` (3 more replies)
  0 siblings, 4 replies; 19+ messages in thread
From: Steven Bosscher @ 2010-05-29 22:29 UTC (permalink / raw)
  To: GCC Patches, Joseph S. Myers, mark

[-- Attachment #1: Type: text/plain, Size: 5013 bytes --]

Hello,

This is the first patch of 3 planned, to move the C front end to its
own directory. The patches implement the plan from Joseph from long
ago (http://gcc.gnu.org/ml/gcc/2004-09/msg00695.html).

This first patch moves all the code common to the C-family of front
ends to a new directory c-family/.  I have not included the part of
the diff for moving the files, just the svn commands I used to move
the files.

(The second patch will move the C front end specific files. The third
file will move the Makefile bits of c-family/ to that directory, but
I'm not sure yet how to do that. Extra follow-ups could split up
c-common.? but I have no plans for that.)

Most of this is trivial updating of paths. The only complication is
that gengtype does not understand that files can come from
subdirectories that are not front-end specific, so I needed a rather
ugly hack there.  Otherwise, as I said: rather mechanical.

Bootstrapped&tested on x86_64-unknown-linux-gnu.
OK for trunk?

Ciao!
Steven


gcc/ChangeLog:
        * c-common.c: Move to c-family/.
        * c-common.def: Likewise.
        * c-common.h: Likewise.
        * c-cppbuiltin.c: Likewise.
        * c-dump.c: Likewise.
        * c-format.c: Likewise.
        * c-format.h : Likewise.
        * c-gimplify.c: Likewise.
        * c-lex.c: Likewise.
        * c-omp.c: Likewise.
        * c.opt: Likewise.
        * c-opts.c: Likewise.
        * c-pch.c: Likewise.
        * c-ppoutput.c: Likewise.
        * c-pragma.c: Likewise.
        * c-pragma.h: Likewise.
        * c-pretty-print.c: Likewise.
        * c-pretty-print.h: Likewise.
        * c-semantics.c: Likewise.
        * stub-objc.c: Likewise.

        * gengtype.c (get_file_langdir): Special-case files in c-family/.
        (get_output_file_with_visibility): Fix name for c-common.h.
        * c-config-lang.in: Update paths in gtfiles for files in c-family/.

        * c-lang.c: Update include path for moved files.
        * c-lang.h: Likewise.
        * c-parser.c: Likewise.
        * c-convert.c: Likewise.
        * configure.ac: Make sure c-family/ exists in the build directory.
        * configure: Regenerate.
        * Makefile.in: Update paths for moved files.  Regroup files per
        location and update dependencies.  Move generated_files down after
        ALL_GTFILES_H.

        * config/spu/spu-c.c: Update paths for moved files.
        * config/mep/mep-pragma.c: Likewise.
        * config/darwin-c.c: Likewise.
        * config/i386/msformat-c.c: Likewise.
        * config/i386/i386-c.c: Likewise.
        * config/avr/avr-c.c: Likewise.
        * config/sol2-c.c: Likewise.
        * config/ia64/ia64-c.c: Likewise.
        * config/rs6000/rs6000-c.c: Likewise.
        * config/arm/arm.c: Likewise.
        * config/arm/arm-c.c: Likewise.
        * config/h8300/h8300.c: Likewise.
        * config/v850/v850-c.c: Likewise.

        * config/t-darwin: Fix dependencies for moved files.
        * config/t-sol2: Fix dependencies for moved files.
        * config/mep/t-mep: Fix dependencies for moved files.
        * config/ia64/t-ia64: Fix dependencies for moved files.
        * config/rs6000/t-rs6000: Fix dependencies for moved files.
        * config/v850/t-v850: Fix dependencies for moved files.
        * config/v850/t-v850e: Fix dependencies for moved files.

        * config/m32c/m32c-pragma.c

c-family/ChangeLog:
        * c-family/c-common.c: Include gt-c-family-c-common.h.
        * c-family/c-pragma.c: Include gt-c-family-c-pragma.h.

objc/ChangeLog:
        * objc/objc-act.c: Update include path for moved files.
        * objc/objc-lang.c: Likewise.
        * objc/config-lang.in: Update paths in gtfiles for files in c-family/.

objcp/ChangeLog:
        * objcp/objcp-lang.c: Update include path for moved files.
        * objcp/config-lang.in: Update paths in gtfiles for files in c-family/.

cp/ChangeLog:
        * cp/typeck.c: Update include path for moved files.
        * cp/decl.c: Likewise.
        * cp/rtti.c: Likewise.
        * cp/cp-gimplify.c: Likewise.
        * cp/cp-lang.c: Likewise.
        * cp/pt.c: Likewise.
        * cp/semantics.c: Likewise.
        * cp/cxx-pretty-print.h: Likewise.
        * cp/decl2.c: Likewise.
        * cp/parser.c: Likewise.
        * cp/cp-objcp-common.c: Likewise.
        * cp/cp-tree.h: Likewise.
        * cp/name-lookup.c: Likewise.
        * cp/lex.c: Likewise.
        * cp/name-lookup.h: Likewise.
        * cp/config-lang.in: Update paths in gtfiles for files in c-family/.
        * cp/Make-lang.in: Likewise.

for f in c-common.c \
        c-common.def \
        c-common.h \
        c-cppbuiltin.c \
        c-dump.c \
        c-format.c \
        c-format.h \
        c-gimplify.c \
        c-lex.c \
        c-omp.c \
        c.opt \
        c-opts.c \
        c-pch.c \
        c-ppoutput.c \
        c-pragma.c \
        c-pragma.h \
        c-pretty-print.c \
        c-pretty-print.h \
        c-semantics.c \
        stub-objc.c ; do
  svn mv $f c-family/ ;
done

[-- Attachment #2: move_c_fe_1.diff.gz --]
[-- Type: application/x-gzip, Size: 9611 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2013-11-06  2:40 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-29 22:29 [patch] Move C front end to its own directory (1/3) Steven Bosscher
2010-05-30 19:51 ` Mark Mitchell
2010-06-04  8:51 ` Steven Bosscher
2010-06-04  9:18   ` Steven Bosscher
2010-06-05 14:58   ` Joseph S. Myers
2010-06-05 10:27 ` Joseph S. Myers
2010-06-05 13:29   ` Steven Bosscher
2010-06-05 13:31     ` Richard Guenther
2010-06-05 13:36       ` Steven Bosscher
2010-06-05 13:42         ` Richard Guenther
2010-06-05 13:45           ` Steven Bosscher
2010-06-05 18:35             ` Laurynas Biveinis
2010-06-08 20:52             ` Jason Merrill
2010-06-08 21:03               ` Jason Merrill
2010-06-08 22:19               ` Steven Bosscher
2010-06-08 22:34                 ` Jason Merrill
2010-06-08 22:35                   ` Steven Bosscher
2010-06-09  6:16               ` Joseph S. Myers
2013-11-06  2:43 ` Mike Stump

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).