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]

new-regalloc merge broke target sh-elf, MEMORY_MOVE_COST undefined


This patch:

2002-07-15  Michael Matz  <matz@suse.de>,
            Daniel Berlin  <dberlin@dberlin.org>,
            Denis Chertykov  <denisc@overta.ru>

        Add a new register allocator.
...

broke the SH target:

gcc -DIN_GCC -DCROSS_COMPILE   -g -O2 -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic
-Wno-long-long  -DHAVE_CONFIG_H  -o cc1 \
	c-parse.o c-lang.o attribs.o c-errors.o c-lex.o c-pragma.o
c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-format.o
c-semantics.o c-objc-common.o libcpp.a  main.o libbackend.a
../libiberty/libiberty.a
libbackend.a(ra-build.o): In function `determine_web_costs':
/home/tm/gcc-build-sh-elf/gcc/../../gcc/gcc/ra-build.c:2695: undefined
reference to `MEMORY_MOVE_COST'
/home/tm/gcc-build-sh-elf/gcc/../../gcc/gcc/ra-build.c:2697: undefined
reference to `MEMORY_MOVE_COST'
libbackend.a(ra-rewrite.o): In function `spill_prop_savings':
/home/tm/gcc-build-sh-elf/gcc/../../gcc/gcc/ra-rewrite.c:169: undefined
reference to `MEMORY_MOVE_COST'
/home/tm/gcc-build-sh-elf/gcc/../../gcc/gcc/ra-rewrite.c:170: undefined
reference to `MEMORY_MOVE_COST'
collect2: ld returned 1 exit status

The problem seems to be ra-build.c/ra-rewrite.c uses
MEMORY_MOVE_COST. This macro is not required to be defined by the target.h
file, and a default definition is currently supplied in reload.h.

Toshi





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