opts.c (decode_options): If optimize is bigger than 255, set it to 255.
* opts.c (decode_options): If optimize is bigger than 255, set it to 255. * gcc.dg/O16384.c: New test. From-SVN: r154699
This commit is contained in:
parent
85539630e3
commit
e96fee3e91
|
@ -1,3 +1,8 @@
|
|||
2009-11-27 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* opts.c (decode_options): If optimize is bigger than 255,
|
||||
set it to 255.
|
||||
|
||||
2009-11-26 Richard Henderson <rth@redhat.com>
|
||||
|
||||
* config/i386/sse.md (mulv16qi3): Change back from an expander
|
||||
|
|
|
@ -829,6 +829,8 @@ decode_options (unsigned int argc, const char **argv)
|
|||
if (optimize_val != -1)
|
||||
{
|
||||
optimize = optimize_val;
|
||||
if ((unsigned int) optimize > 255)
|
||||
optimize = 255;
|
||||
optimize_size = 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
2009-11-27 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* gcc.dg/O16384.c: New test.
|
||||
|
||||
2009-11-27 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
PR c++/35112
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
/* Test insane -O argument. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-O16384" } */
|
||||
|
||||
__attribute__((__optimize__(16396), __noinline__)) void
|
||||
foo (void)
|
||||
{
|
||||
}
|
||||
|
||||
int
|
||||
main (void)
|
||||
{
|
||||
foo ();
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue