re PR target/45296 (register long double ICE at -O2, -Os, -O3)
PR target/45296 * reginfo.c (globalize_reg): Reject stack registers. testsuite/ChangeLog: PR target/45296 * gcc.target/i386/pr45296.c: New test. From-SVN: r163303
This commit is contained in:
parent
fd4a760e5e
commit
2c65142a27
@ -1,3 +1,8 @@
|
||||
2010-08-17 Uros Bizjak <ubizjak@gmail.com>
|
||||
|
||||
PR target/45296
|
||||
* reginfo.c (globalize_reg): Reject stack registers.
|
||||
|
||||
2010-08-17 Richard Guenther <rguenther@suse.de>
|
||||
|
||||
* tree-ssa-dom.c (struct edge_info): Use a VEC for the
|
||||
@ -24,7 +29,7 @@
|
||||
* c-decl.c (diagnose_uninitialized_cst_member): New function.
|
||||
(finish_decl): Use it to issue a -Wc++-compat warning about
|
||||
uninitialized const field in struct or union.
|
||||
|
||||
|
||||
(finish_struct): Use strip_array_types.
|
||||
|
||||
2010-08-17 Jakub Jelinek <jakub@redhat.com>
|
||||
@ -112,8 +117,7 @@
|
||||
(decode_options): Update call to decode_cmdline_options_to_array.
|
||||
(print_filtered_help): Ignore driver-only options.
|
||||
(print_specific_help): Ignore CL_DRIVER.
|
||||
(common_handle_option): Don't call print_specific_help for
|
||||
CL_DRIVER.
|
||||
(common_handle_option): Don't call print_specific_help for CL_DRIVER.
|
||||
* opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
|
||||
(CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
|
||||
Update values.
|
||||
|
@ -798,6 +798,14 @@ fix_register (const char *name, int fixed, int call_used)
|
||||
void
|
||||
globalize_reg (int i)
|
||||
{
|
||||
#ifdef STACK_REGS
|
||||
if (IN_RANGE (i, FIRST_STACK_REG, LAST_STACK_REG))
|
||||
{
|
||||
error ("stack register used for global register variable");
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (fixed_regs[i] == 0 && no_global_reg_vars)
|
||||
error ("global register variable follows a function definition");
|
||||
|
||||
|
@ -1,3 +1,8 @@
|
||||
2010-08-17 Uros Bizjak <ubizjak@gmail.com>
|
||||
|
||||
PR target/45296
|
||||
* gcc.target/i386/pr45296.c: New test.
|
||||
|
||||
2010-08-17 Kai Tietz <kai.tietz@onevision.com>
|
||||
|
||||
* g++.dg/ext/uow-1.C: New.
|
||||
|
4
gcc/testsuite/gcc.target/i386/pr45296.c
Normal file
4
gcc/testsuite/gcc.target/i386/pr45296.c
Normal file
@ -0,0 +1,4 @@
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "" } */
|
||||
|
||||
register long double F80 asm("st"); /* { dg-error "stack register" } */
|
Loading…
x
Reference in New Issue
Block a user