diff mbox

[rl78] Remove unnecessary includes from rl78-c.c (committed)

Message ID CABu31nPUwuDm7YpFtHQhfxQ_vYdijvur19o9geBHkZ_0J8egmA@mail.gmail.com
State New
Headers show

Commit Message

Steven Bosscher June 20, 2012, 9:54 a.m. UTC
Hello,

rl78-c.c includes many files that it doesn't need. The patch below removes them.

I could not really test this, because rl78 build is broken:

/home/stevenb/devel/cross/build-rl78-test/./gcc/xgcc
-B/home/stevenb/devel/cross/build-rl78-test/./gcc/ -nostdinc
-B/home/stevenb/devel/cross/build-rl78-test/rl78-elf/newlib/ -isystem
/home/stevenb/devel/cross/build-rl78-test/rl78-elf/newlib/targ-include
-isystem /home/stevenb/devel/cross/combined/newlib/libc/include
-B/home/stevenb/devel/cross/build-rl78-test/rl78-elf/libgloss/rl78
-L/home/stevenb/devel/cross/build-rl78-test/rl78-elf/libgloss/libnosys
-L/home/stevenb/devel/cross/combined/libgloss/rl78
-B/usr/local/rl78-elf/bin/ -B/usr/local/rl78-elf/lib/ -isystem
/usr/local/rl78-elf/include -isystem /usr/local/rl78-elf/sys-include
-L/home/stevenb/devel/cross/build-rl78-test/./ld
-DPACKAGE_NAME=\"newlib\" -DPACKAGE_TARNAME=\"newlib\"
-DPACKAGE_VERSION=\"1.20.0\" -DPACKAGE_STRING=\"newlib\ 1.20.0\"
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -I.
-I../../../../../combined/newlib/libc/stdlib -DPREFER_SIZE_OVER_SPEED
-DSMALL_MEMORY -DMISSING_SYSCALL_NAMES -fno-builtin      -g -O2 -c -o
lib_a-strtoll.o `test -f 'strtoll.c' || echo
'../../../../../combined/newlib/libc/stdlib/'`strtoll.c
../../../../../combined/newlib/libc/stdlib/rand.c: In function ârandâ:
../../../../../combined/newlib/libc/stdlib/rand.c:89:1: error:
unrecognizable insn:
 }
 ^
(insn 405 404 406 2 (set (mem:HI (plus:HI (reg/f:HI 32 sp)
                (const_int 12 [0xc])) [0 S2 A16])
        (const_int 62509 [0xf42d]))
../../../../../combined/newlib/libc/stdlib/rand.c:87 -1
     (nil))
../../../../../combined/newlib/libc/stdlib/rand.c:89:1: internal
compiler error: in extract_insn, at recog.c:2130
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

But this patch is obvious enough that I've just decided to go ahead
and commit it.

Ciao!
Steven


       * config/rl78/rl78-c.c: Remove unnecessary includes.
diff mbox

Patch

Index: config/rl78/rl78-c.c
===================================================================
--- config/rl78/rl78-c.c        (revision 188820)
+++ config/rl78/rl78-c.c        (working copy)
@@ -23,17 +23,8 @@ 
 #include "coretypes.h"
 #include "tm.h"
 #include "tree.h"
-#include "c-family/c-pragma.h"
 #include "c-family/c-common.h"
-#include "diagnostic-core.h"
-#include "cpplib.h"
-#include "hard-reg-set.h"
-#include "output.h"
 #include "rl78-protos.h"
-#include "function.h"
-#define MAX_RECOG_OPERANDS 10
-#include "reload.h"
-#include "target.h"

 /* Implements REGISTER_TARGET_PRAGMAS.  */
 void