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]

[patch] Move C front end to its own directory (1/3)


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: move_c_fe_1.diff.gz
Description: GNU Zip compressed data


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