Commit 400a2d24 by Eric Botcazou Committed by Eric Botcazou

misc.c (gnat_init_options): Do not concatenate -I and its argument, except for…

misc.c (gnat_init_options): Do not concatenate -I and its argument, except for the special -I- switch.

	* gcc-interface/misc.c (gnat_init_options): Do not concatenate -I and
	its argument, except for the special -I- switch.

From-SVN: r170150
parent 12967872
2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/misc.c (gnat_init_options): Do not concatenate -I and
its argument, except for the special -I- switch.
2011-02-12 Gerald Pfeifer <gerald@pfeifer.com> 2011-02-12 Gerald Pfeifer <gerald@pfeifer.com>
* gnat_ugn.texi (Compiling Different Versions of Ada): Update * gnat_ugn.texi (Compiling Different Versions of Ada): Update
......
...@@ -195,13 +195,12 @@ gnat_init_options (unsigned int decoded_options_count, ...@@ -195,13 +195,12 @@ gnat_init_options (unsigned int decoded_options_count,
|| num_elements == 0) || num_elements == 0)
continue; continue;
if (decoded_options[i].opt_index == OPT_I) /* Deal with -I- specially since it must be a single switch. */
{ if (decoded_options[i].opt_index == OPT_I
gcc_assert (num_elements == 2); && num_elements == 2
save_argv[save_argc++] && decoded_options[i].canonical_option[1][0] == '-'
= concat (decoded_options[i].canonical_option[0], && decoded_options[i].canonical_option[1][1] == '\0')
decoded_options[i].canonical_option[1], NULL); save_argv[save_argc++] = "-I-";
}
else else
{ {
gcc_assert (num_elements >= 1 && num_elements <= 2); gcc_assert (num_elements >= 1 && num_elements <= 2);
......
2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/include.adb: New test.
2011-02-14 Janus Weil <janus@gcc.gnu.org> 2011-02-14 Janus Weil <janus@gcc.gnu.org>
PR fortran/47728 PR fortran/47728
......
-- { dg-do compile } */
-- { dg-options "-cargs -I -gnatws" }
-- { dg-error "search directory missing" "" { target *-*-* } 0 }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment