]> gcc.gnu.org Git - gcc.git/commit
gcc.c (cc1_options): Handle -iplugindir before processing the cc1 spec.
authorMatthias Klose <doko@gcc.gnu.org>
Mon, 12 Apr 2010 23:58:18 +0000 (23:58 +0000)
committerMatthias Klose <doko@gcc.gnu.org>
Mon, 12 Apr 2010 23:58:18 +0000 (23:58 +0000)
commit4adbd5dd3cf5801e622fcfff3149a27940d34089
tree03b93cac03234238b2a22c3947bc8bcd44f3d7fb
parente0db9cc648242cbbea38cc3c559663acb501aee8
gcc.c (cc1_options): Handle -iplugindir before processing the cc1 spec.

gcc/

2010-04-13  Matthias Klose  <doko@ubuntu.com>

* gcc.c (cc1_options): Handle -iplugindir before processing
the cc1 spec. Only add -iplugindir once.
(cpp_unique_options): Add -iplugindir option if -fplugin* options
found.
* common.opt (iplugindir): Remove `Separate' property, initialize.
* plugin.c (default_plugin_dir_name): Error with missing -iplugindir
option.
* Makefile.in (check-%, check-parallel-%): Create plugin dir.
(distclean): Remove plugin dir.

2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>

* doc/plugins.texi (Loading Plugins): Document short
-fplugin=foo option.
(Plugin API): Mention default_plugin_dir_name function.

* gcc.c (find_file_spec_function): Add new declaration.
(static_spec_func): Use it for "find-file".
(find_file_spec_function): Add new function.
(cc1_options): Add -iplugindir option if -fplugin* options found.

* gcc-plugin.h (default_plugin_dir_name): Added new declaration.

* plugin.c (add_new_plugin): Updated comment, and handle short
plugin name.
(default_plugin_dir_name): Added new function.

* common.opt (iplugindir): New option to set the plugin
directory.

gcc/testsuite/

2010-04-13  Matthias Klose  <doko@ubuntu.com>

* gcc.dg/plugindir1.c: New testcase.
* gcc.dg/plugindir2.c: New testcase.
* gcc.dg/plugindir3.c: New testcase.
* gcc.dg/plugindir4.c: New testcase.

From-SVN: r158247
13 files changed:
gcc/ChangeLog
gcc/Makefile.in
gcc/common.opt
gcc/doc/invoke.texi
gcc/doc/plugins.texi
gcc/gcc-plugin.h
gcc/gcc.c
gcc/plugin.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/plugindir1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/plugindir2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/plugindir3.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/plugindir4.c [new file with mode: 0644]
This page took 0.105584 seconds and 5 git commands to generate.