public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/23117] New: ICE on valid code while building libgcc
@ 2005-07-28 19:55 raj dot khem at gmail dot com
  2005-07-28 19:56 ` [Bug c/23117] " raj dot khem at gmail dot com
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: raj dot khem at gmail dot com @ 2005-07-28 19:55 UTC (permalink / raw)
  To: gcc-bugs

The latest compiler build from CVS sources on 07-28-2005 segfaults while
building libgcc for arm-softfloat target with -O2,O2,Os opt levels. The error
does not happen when -O1 is used

The program compiles fine when I use my host compiler which is gcc version 4.0.1
20050727 (Red Hat 4.0.1-5)

error log
================================

 __do_global_ctors_aux
Analyzing compilation unitPerforming intraprocedural optimizations
Assembling functions:
 __do_global_ctors_aux
/home/kraj/a.c: In function '__do_global_ctors_aux':
/home/kraj/a.c:8: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

====================================

How to reporoduce

gcc -O2 -c testcase.c

testcase.c
====================================
typedef void (*func_ptr) (void);

static func_ptr __CTOR_END__[1] = {(func_ptr) 0 };

static void  __attribute__((used))  __do_global_ctors_aux (void)
{
  func_ptr *p;
  for (p = __CTOR_END__ - 1; *p != (func_ptr) -1; p--)
    (*p) ();
}

=======================================================

-- 
           Summary: ICE on valid code while building libgcc
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: raj dot khem at gmail dot com
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i686-host_pc-linux-gnu
GCC target triplet: arm-softfloat-linux-gnu


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


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

end of thread, other threads:[~2005-07-29 16:32 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-28 19:55 [Bug tree-optimization/23117] New: ICE on valid code while building libgcc raj dot khem at gmail dot com
2005-07-28 19:56 ` [Bug c/23117] " raj dot khem at gmail dot com
2005-07-28 19:59 ` [Bug middle-end/23117] " pinskia at gcc dot gnu dot org
2005-07-28 20:28 ` [Bug rtl-optimization/23117] [4.1 Regression] " pinskia at gcc dot gnu dot org
2005-07-28 22:20 ` raj dot khem at gmail dot com
2005-07-28 22:25 ` raj dot khem at gmail dot com
2005-07-28 22:40 ` pinskia at gcc dot gnu dot org
2005-07-28 23:37 ` steven at gcc dot gnu dot org
2005-07-28 23:37 ` steven at gcc dot gnu dot org
2005-07-29  4:34 ` raj dot khem at gmail dot com
2005-07-29  9:33 ` cvs-commit at gcc dot gnu dot org
2005-07-29  9:33 ` rearnsha at gcc dot gnu dot org
2005-07-29 16:38 ` 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).