mirror of git://gcc.gnu.org/git/gcc.git
re PR driver/71063 (ICE: Segmentation fault with --help="^")
PR driver/71063 * opts.c (common_handle_option): Detect missing argument for --help^. * gcc.dg/opts-7.c: New test. From-SVN: r236170
This commit is contained in:
parent
5acc47a40d
commit
a5fbf76d42
|
|
@ -1,3 +1,8 @@
|
||||||
|
2016-05-12 Marek Polacek <polacek@redhat.com>
|
||||||
|
|
||||||
|
PR driver/71063
|
||||||
|
* opts.c (common_handle_option): Detect missing argument for --help^.
|
||||||
|
|
||||||
2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
|
2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
|
||||||
|
|
||||||
PR target/70830
|
PR target/70830
|
||||||
|
|
|
||||||
|
|
@ -1640,6 +1640,11 @@ common_handle_option (struct gcc_options *opts,
|
||||||
if (*a == '^')
|
if (*a == '^')
|
||||||
{
|
{
|
||||||
++a;
|
++a;
|
||||||
|
if (*a == '\0')
|
||||||
|
{
|
||||||
|
error_at (loc, "missing argument to %qs", "--help=^");
|
||||||
|
break;
|
||||||
|
}
|
||||||
pflags = &exclude_flags;
|
pflags = &exclude_flags;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,8 @@
|
||||||
|
2016-05-12 Marek Polacek <polacek@redhat.com>
|
||||||
|
|
||||||
|
PR driver/71063
|
||||||
|
* gcc.dg/opts-7.c: New test.
|
||||||
|
|
||||||
2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
|
2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
|
||||||
|
|
||||||
PR target/70830
|
PR target/70830
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
/* PR driver/71063 */
|
||||||
|
/* Test we don't ICE. */
|
||||||
|
/* { dg-do compile } */
|
||||||
|
/* { dg-options "--help=^" } */
|
||||||
|
|
||||||
|
/* { dg-error "missing argument to" "" { target *-*-* } 0 } */
|
||||||
Loading…
Reference in New Issue