PATCH: Add support for darwin linker option -dynamic

Geoff Keating geoffk@geoffk.org
Thu Dec 19 15:27:00 GMT 2002


Devang Patel <dpatel@apple.com> writes:

> This patch adds support for darwin linker option -dynamic.
> Bootstrapped and tested on powerpc-darwin
> 
> 2002-12-19  Devang Patel  <dpatel@apple.com>
> 
>        * config/darwin.h: Add support for -dynamic
>        * config/rs6000/darwin.h: Reject conflicting code gen style
> 
> testsuite:
> 
> 2002-12-19  Devang Patel <dpatel@apple.com>
> 
>        * gcc.dg/darwin-ld-5.c: Rewrite test to test -dynamic.
> 
> OK to commit? Where?

This is OK, but please write the first Changelog entry as:

2002-12-19  Devang Patel  <dpatel@apple.com>

	* config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add support
	for -dynamic.
        (CPP_SPEC): Define __STATIC__ and __DYNAMIC__ depending on
        -dynamic.
        (LINK_SPEC): Pass -dynamic to linker.
	* config/rs6000/darwin.h (CC1_SPEC): Reject conflicting -static
        and -dynamic.

Also, beware: right at the end of your patch there's:

cvs server: testsuite/gcc.dg/darwin-ld-6.c is a new entry, no comparison available

-- 
- Geoffrey Keating <geoffk@geoffk.org>



More information about the Gcc-patches mailing list