This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

optimization/2093: Internal compiler error emitting DWARF2 for nested functions



>Number:         2093
>Category:       optimization
>Synopsis:       Internal compiler error emitting DWARF2 for nested functions
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 25 14:26:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Momchil Velikov
>Release:        gcc version 3.1 20010225 (experimental)
>Organization:
>Environment:
Host Debian GNU/Linux 2.2, i386
Configured with: ../configure --target=powerpc-sysv4 --enable-languages=c
>Description:
powerpc-sysv4-gcc -v -O2 -gdwarf-2   -c -o xx.o xx.c
Reading specs from /usr/local/lib/gcc-lib/powerpc-sysv4/3.1/specs
Configured with: ../configure --target=powerpc-sysv4 --enable-languages=c
gcc version 3.1 20010225 (experimental)
 /usr/local/lib/gcc-lib/powerpc-sysv4/3.1/cc1 -lang-c -v -D__GNUC__=3 -D__GNUC_MINOR__=1 -D__GNUC_PATCHLEVEL__=0 -DPPC -Dunix -D__svr4__ -D__PPC__ -D__unix__ -D__svr4__ -D__PPC -D__unix -Asystem=unix -Asystem=svr4 -Acpu=powerpc -Amachine=powerpc -D__CHAR_UNSIGNED__ -D__OPTIMIZE__ -D__STDC_HOSTED__=1 -D_CALL_SYSV -D_BIG_ENDIAN -D__BIG_ENDIAN__ -Amachine=bigendian -D_ARCH_PPC xx.c -quiet -dumpbase xx.c -gdwarf-2 -O2 -version -o /tmp/cc56wEjM.s
GNU CPP version 3.1 20010225 (experimental) (cpplib) (PowerPC System V.4)
GNU CPP version 3.1 20010225 (experimental) (cpplib) (PowerPC System V.4)
GNU C version 3.1 20010225 (experimental) (powerpc-sysv4)
	compiled by GNU C version 3.1 20010225 (experimental).
ignoring nonexistent directory "/usr/local/powerpc-sysv4/sys-include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/lib/gcc-lib/powerpc-sysv4/3.1/include
 /usr/local/powerpc-sysv4/include
End of search list.
xx.c: In function `foo':
xx.c:19: Internal compiler error in gen_subprogram_die, at dwarf2out.c:10128
Please submit a full bug report, with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>How-To-Repeat:
int foo (int a)
{
  int n;

  int boo () { return 0; }

  while (1)
    {
      if (a > 0)
        {
          if ((n = baz (a)) < 0)
            return n;
        }

      if (!n)
        break;
    }
  return n + bar ();
}
>Fix:
Semi-workaround: use -fno-reorder-blocks
In function.c:reorder_blocks_1 when a block
is copied (line 5893) BLOCK_VARS remain the same, so
later dwarf2out.c:gen_subprogram_die is reached
several times for a FUNCTION_DECL, which is
nether inlined nor pure declararion.
>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]