public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/31022]  New: [SH4] internal compiler error with inline
@ 2007-03-02  8:52 saito at densan dot co dot jp
  2007-03-15 13:17 ` [Bug target/31022] [4.1/4.2/4.3 Regression] " kkojima at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: saito at densan dot co dot jp @ 2007-03-02  8:52 UTC (permalink / raw)
  To: gcc-bugs

When I compile a testcase that includes float and inline, it asserts internal
compiler error if it is optimized with -O2. If it is optimized with -O, this
error is not asserted.

% gcc -c test.c -O2 -m4
test.c: In function 'fff':
test.c:19: internal compiler error: in reg_overlap_mentioned_p, at
rtlanal.c:1382
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

-test case----------------------------
typedef union { float f; int i; } fi_type;

static __inline__ float LOG2(float val)
{
   fi_type num;
   int i;

   num.f = val;
   i = num.i >> 23;
   num.i++;
   return num.f + i;
}

float f;

float fff()
{
   return LOG2(f);
}


-- 
           Summary: [SH4] internal compiler error with inline
           Product: gcc
           Version: 4.1.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: saito at densan dot co dot jp
 GCC build triplet: sh4-linux
  GCC host triplet: sh4-linux
GCC target triplet: sh4-linux


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


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

end of thread, other threads:[~2007-05-26  3:15 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-02  8:52 [Bug target/31022] New: [SH4] internal compiler error with inline saito at densan dot co dot jp
2007-03-15 13:17 ` [Bug target/31022] [4.1/4.2/4.3 Regression] " kkojima at gcc dot gnu dot org
2007-03-19  4:15 ` kkojima at gcc dot gnu dot org
2007-04-28  4:19 ` kargl at gcc dot gnu dot org
2007-05-20 23:23 ` kkojima at gcc dot gnu dot org
2007-05-20 23:54 ` kkojima at gcc dot gnu dot org
2007-05-21  0:01 ` kkojima at gcc dot gnu dot org
2007-05-26  3:15 ` 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).