public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/18447] New: Variable with the initial-exec tls-model attribute causes spill failure
@ 2004-11-12 10:34 kkojima at gcc dot gnu dot org
  2004-11-12 10:35 ` [Bug target/18447] " kkojima at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: kkojima at gcc dot gnu dot org @ 2004-11-12 10:34 UTC (permalink / raw)
  To: gcc-bugs

The following foo.c which is a reduced case of libc/grp/initgroup.c
causes an ICE:

foo.c:13: error: unable to find a register to spill in class 'R0_REGS'
foo.c:13: error: this is the insn:
(insn:HI 28 32 34 1 (set (reg:SI 147 t)
        (eq:SI (reg/v:SI 2 r2 [orig:161 result ] [161])
            (const_int -1 [0xffffffffffffffff]))) 1 {cmpeqsi_t}
(insn_list:REG_DEP_ANTI 23 (insn_list:REG_DEP_ANTI 24 (insn_list:REG_DEP_ANTI 25
(insn_list:REG_DEP_TRUE 26 (nil)))))
    (nil))

with -O2.

foo.c:
--
extern __thread int err __attribute__ ((tls_model ("initial-exec")));

int
foo (int n, int *grp)
{
  int result;

  do
    result = bar (n, grp);
  while (result == -1 && err == 22 && --n > 0);

  return result;
}
--

-- 
           Summary: Variable with the initial-exec tls-model attribute
                    causes spill failure
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: kkojima at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: sh4-unknown-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18447


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug target/18447] Variable with the initial-exec tls-model attribute causes spill failure
  2004-11-12 10:34 [Bug target/18447] New: Variable with the initial-exec tls-model attribute causes spill failure kkojima at gcc dot gnu dot org
@ 2004-11-12 10:35 ` kkojima at gcc dot gnu dot org
  2004-11-12 13:55 ` [Bug target/18447] [4.0 Regression] " pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: kkojima at gcc dot gnu dot org @ 2004-11-12 10:35 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |4.0.0
      Known to work|                            |3.4.3


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18447


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug target/18447] [4.0 Regression] Variable with the initial-exec tls-model attribute causes spill failure
  2004-11-12 10:34 [Bug target/18447] New: Variable with the initial-exec tls-model attribute causes spill failure kkojima at gcc dot gnu dot org
  2004-11-12 10:35 ` [Bug target/18447] " kkojima at gcc dot gnu dot org
@ 2004-11-12 13:55 ` pinskia at gcc dot gnu dot org
  2004-11-16 12:17 ` cvs-commit at gcc dot gnu dot org
  2004-11-16 13:10 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-12 13:55 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Variable with the initial-  |[4.0 Regression] Variable
                   |exec tls-model attribute    |with the initial-exec tls-
                   |causes spill failure        |model attribute causes spill
                   |                            |failure
   Target Milestone|---                         |4.0.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18447


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug target/18447] [4.0 Regression] Variable with the initial-exec tls-model attribute causes spill failure
  2004-11-12 10:34 [Bug target/18447] New: Variable with the initial-exec tls-model attribute causes spill failure kkojima at gcc dot gnu dot org
  2004-11-12 10:35 ` [Bug target/18447] " kkojima at gcc dot gnu dot org
  2004-11-12 13:55 ` [Bug target/18447] [4.0 Regression] " pinskia at gcc dot gnu dot org
@ 2004-11-16 12:17 ` cvs-commit at gcc dot gnu dot org
  2004-11-16 13:10 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-11-16 12:17 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-11-16 12:17 -------
Subject: Bug 18447

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	kkojima@gcc.gnu.org	2004-11-16 12:17:01

Modified files:
	gcc            : ChangeLog 
	gcc/config/sh  : sh.c 

Log message:
	PR target/18447
	* config/sh/sh.c (prepare_move_operands): Emit blockage insns
	before and after the insns for getting GOT address in non-PIC
	TLS_MODEL_INITIAL_EXEC tls sequence when the first scheduling
	is enabled.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.6361&r2=2.6362
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/sh/sh.c.diff?cvsroot=gcc&r1=1.311&r2=1.312



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18447


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug target/18447] [4.0 Regression] Variable with the initial-exec tls-model attribute causes spill failure
  2004-11-12 10:34 [Bug target/18447] New: Variable with the initial-exec tls-model attribute causes spill failure kkojima at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2004-11-16 12:17 ` cvs-commit at gcc dot gnu dot org
@ 2004-11-16 13:10 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-16 13:10 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-16 13:10 -------
Fixed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18447


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-11-16 13:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-12 10:34 [Bug target/18447] New: Variable with the initial-exec tls-model attribute causes spill failure kkojima at gcc dot gnu dot org
2004-11-12 10:35 ` [Bug target/18447] " kkojima at gcc dot gnu dot org
2004-11-12 13:55 ` [Bug target/18447] [4.0 Regression] " pinskia at gcc dot gnu dot org
2004-11-16 12:17 ` cvs-commit at gcc dot gnu dot org
2004-11-16 13:10 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).