This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Use C for some rs6000 -D options.
Andreas Tobler <toa@pop.agri.ch> writes:
> Geoffrey Keating wrote:
> > This starts converting the rs6000 port to the new way of making
> > preprocessor defines.
> > Tested on powerpc-eabisim, bootstrapped and tested on powerpc-aix4.3.
> >
>
> ranlib libbackend.a
> cc -no-cpp-precomp -DIN_GCC -g -no-cpp-precomp
> -DHAVE_DESIGNATED_INITIALIZERS=0 -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 darwin-c.o main.o libbackend.a
> /intl/libintl.a ../libiberty/libiberty.a
> /usr/bin/ld: Undefined symbols:
> _rs6000_cpu_cpp_builtins
> make[2]: *** [cc1] Error 1
> make[1]: *** [stage1_build] Error 2
> make: *** [bootstrap] Error 2
>
> On Darwin 5.5.
Please try this patch and tell me if it works.
--
- Geoffrey Keating <geoffk@geoffk.org> <geoffk@redhat.com>
2002-06-12 Geoffrey Keating <geoffk@redhat.com>
* config.gcc: Revert rth's patch of 2002-05-18. Instead,
include both darwin.o and rs6000-c.o.
Index: config.gcc
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config.gcc,v
retrieving revision 1.210
diff -p -u -p -r1.210 config.gcc
--- config.gcc 12 Jun 2002 01:36:10 -0000 1.210
+++ config.gcc 12 Jun 2002 15:57:14 -0000
@@ -2907,15 +2907,9 @@ powerpc*-*-* | rs6000-*-*)
fi
;;
esac
- case $machine in
- *-*-darwin*)
- ;;
- *)
- c_target_objs="rs6000-c.o"
- cxx_target_objs="rs6000-c.o"
- tmake_file="${tmake_file} rs6000/t-rs6000-c-rule"
- ;;
- esac
+ c_target_objs="${c_target_objs} rs6000-c.o"
+ cxx_target_objs="${cxx_target_objs} rs6000-c.o"
+ tmake_file="${tmake_file} rs6000/t-rs6000-c-rule"
;;
sparc*-*-*)
case ".$with_cpu" in