This is the mail archive of the 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]

Re: speedup collect2 (by not using it)

> Try the below patch, I think it will work fine on hpux11.  If not, let 
> me know what goes wrong.

!         if (USE_COLLECT2 || LD_INIT_SWITCH || repo_flag)
!           s = find_a_file (&exec_prefixes, "collect2", X_OK, 0);

I think you need to add:

!         else
!           s = find_a_file (&exec_prefixes, "ld", X_OK, 0);

This will allow the define for DEFAULT_LINKER to come into play.

I started testing but I hit the unrelated error:

gcc   -g  -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -fno-common   -DHAVE_CONFIG_H  -o cc1 \
	c-parse.o c-lang.o c-pretty-print.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-opts.o c-format.o c-semantics.o c-incpath.o cppdefault.o c-ppoutput.o c-cppbuiltin.o prefix.o c-objc-common.o c-dump.o c-pch.o libcpp.a  main.o libbackend.a   ../libiberty/libiberty.a
ld: Unsatisfied symbol "CONTAINS_PLACEHOLDER_P" in file libbackend.a[expr.o]

J. David Anglin                        
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)

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