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]
Other format: [Raw text]

"Internal compiler error" by compiling with GNAT


 
Dear Sirs,

please excuse me, that I send you a compressed attachement since your mail system does not accept long attachements.

by compiling GtkAda-1.2.12, distributed with gnat professinal from ACT (gnat-3.14a1, gnat-3.15a) I found the following error:

Compiling: ../gtk-extra-plot_data.adb (source file time stamp: 2001-04-28 01:19:54)
+===========================GNAT BUG DETECTED==============================+
| 3.1 (20020212) (sparc-sun-solaris2.8) GCC error:                         |
| Internal compiler error in assign_stack_temp_for_type, at                |
|    function.c:664                                                        |
| Error detected at /usr/local/gcc-3.1/lib/gcc-lib/sparc-sun-solaris2.8/3.2/adainclude/s-secsta.ads:65:14|
| Please submit bug report by email to gcc-bugs@gcc.gnu.org.               |
| Use a subject line meaningful to you and us to track the bug.            |
| Include the entire contents of this bug box in the report.               |
| Include the exact gcc or gnatmake command that you entered.              |
| Also include sources listed below in gnatchop format                     |
| (concatenated together with no headers between files).                   |
| (use plain ASCII or MIME attachment).                                    |
| See gnatinfo.txt for full info on procedure for submitting bugs.         |
 

This file compiles with gnat-3.14a1 and gnat-3.15a (I'm using GTK ADA in projects and private).

Environment:
I have tried two versions of your compiler:
The stable version and the cvs version:

    * stable: gcc -c -I../ -O2 -gnatn -gnatwuwl -fPIC -I- ../gtk-extra-plot_data.adb -v -gnatv
      Reading specs from /usr/local/gcc-3.1/lib/gcc-lib/sparc-sun-solaris2.8/3.1/specs
      Configured with: /usr/local/src/tmp/GCC/gcc-3.1/configure --prefix=/usr/local/gcc-3.1 --verbose
      Thread model: posix
      gcc version 3.1
       /usr/local/gcc-3.1/lib/gcc-lib/sparc-sun-solaris2.8/3.1/gnat1 -I../ -I- -quiet -dumpbase gtk-extra-plot_data.adb -gnatn -gnatwuwl -gnatv -O2 -fPIC ../gtk-extra-plot_data.adb -o /var/tmp//ccRTpeQF.s

      GNAT 3.1 (20020501) Copyright 1992-2001 Free Software Foundation, Inc.

      Compiling: ../gtk-extra-plot_data.adb (source file time stamp: 2001-04-28 01:19:54)
      +===========================GNAT BUG DETECTED==============================+
      | 3.1 (20020501) (sparc-sun-solaris2.8) GCC error:                         |
      | Internal compiler error in assign_stack_temp_for_type, at                |
      |    function.c:673                                                        |
      | Error detected at /usr/local/gcc-3.1/lib/gcc-lib/sparc-sun-solaris2.8/3.1/adainclude/s-secsta.ads:66:14|
      | Please submit a bug report, see http://gcc.gnu.org/bugs.html.            |
      | Include the entire contents of this bug box in the report.               |
      | Include the exact gcc or gnatmake command that you entered.              |
      | Also include sources listed below in gnatchop format                     |
      | (concatenated together with no headers between files).                   |
      +==========================================================================+

      Please include these source files with error report

      ../gtk-extra-plot_data.adb
      ../gtk-extra-plot_data.ads
      ../gtk-extra.ads
      ../gtk.ads
      ../glib.ads
      ../gdk.ads
      ../gtk-widget.ads
      ../gdk-color.ads
      ../gdk-visual.ads
      ../glib-glist.ads
      ../gdk-types.ads
      ../gdk-event.ads
      ../gdk-rectangle.ads
      ../gdk-window.ads
      ../gdk-cursor.ads
      ../gdk-window_attr.ads
      ../gdk-bitmap.ads
      ../gtk-accel_group.ads
      ../gtk-object.ads
      ../gtkada.ads
      ../gtkada-types.ads
      ../gtk-adjustment.ads
      ../gtk-data.ads
      ../gtk-enums.ads
      ../gtk-style.ads
      ../gdk-gc.ads
      ../gdk-font.ads
      ../gdk-region.ads
      ../gdk-pixmap.ads
      ../glib-gslist.ads
      ../glib-glist.adb
      ../glib-gslist.adb

       1023 lines: No errors
      compilation abandoned
 

    * cvs: gcc -c -I../ -O2 -gnatn -gnatwuwl -fPIC -I- ../gtk-extra-plot_data.adb -v -gnatv
      Reading specs from /usr/local/gcc-3.1/lib/gcc-lib/sparc-sun-solaris2.8/3.2/specs
      Configured with: /usr/local/src/tmp/GCC/GCC3.1-CVS/gcc/configure --prefix=/usr/local/gcc-3.1 --verbose
      Thread model: posix
      gcc version 3.2 20020524 (experimental)
       /usr/local/gcc-3.1/lib/gcc-lib/sparc-sun-solaris2.8/3.2/gnat1 -I../ -I- -quiet -dumpbase gtk-extra-plot_data.adb -gnatn -gnatwuwl -gnatv -O2 -fPIC ../gtk-extra-plot_data.adb -o /var/tmp//ccOKoyLo.s

      GNAT 3.1 (20020212) Copyright 1992-2002 Free Software Foundation, Inc.

      Compiling: ../gtk-extra-plot_data.adb (source file time stamp: 2001-04-28 01:19:54)
      +===========================GNAT BUG DETECTED==============================+
      | 3.1 (20020212) (sparc-sun-solaris2.8) GCC error:                         |
      | Internal compiler error in assign_stack_temp_for_type, at                |
      |    function.c:664                                                        |
      | Error detected at /usr/local/gcc-3.1/lib/gcc-lib/sparc-sun-solaris2.8/3.2/adainclude/s-secsta.ads:65:14|
      | Please submit bug report by email to gcc-bugs@gcc.gnu.org.               |
      | Use a subject line meaningful to you and us to track the bug.            |
      | Include the entire contents of this bug box in the report.               |
      | Include the exact gcc or gnatmake command that you entered.              |
      | Also include sources listed below in gnatchop format                     |
      | (concatenated together with no headers between files).                   |
      | (use plain ASCII or MIME attachment).                                    |
      | See gnatinfo.txt for full info on procedure for submitting bugs.         |
      +==========================================================================+

      Please include these source files with error report

      ../gtk-extra-plot_data.adb
      ../gtk-extra-plot_data.ads
      ../gtk-extra.ads
      ../gtk.ads
      ../glib.ads
      ../gdk.ads
      ../gtk-widget.ads
      ../gdk-color.ads
      ../gdk-visual.ads
      ../glib-glist.ads
      ../gdk-types.ads
      ../gdk-event.ads
      ../gdk-rectangle.ads
      ../gdk-window.ads
      ../gdk-cursor.ads
      ../gdk-window_attr.ads
      ../gdk-bitmap.ads
      ../gtk-accel_group.ads
      ../gtk-object.ads
      ../gtkada.ads
      ../gtkada-types.ads
      ../gtk-adjustment.ads
      ../gtk-data.ads
      ../gtk-enums.ads
      ../gtk-style.ads
      ../gdk-gc.ads
      ../gdk-font.ads
      ../gdk-region.ads
      ../gdk-pixmap.ads
      ../glib-gslist.ads
      ../glib-glist.adb
      ../glib-gslist.adb

       1023 lines: No errors
      compilation abandoned

I was astonished that the cvs version of gnat has an elder time tag the the stable version (20020212 <=> 20020501),

I tried to find the problem and I found the place where and why gnat crashes but no solution (pleas refer to the attached gdb session for the cvs version: gdb_session_cvs_code.log, for the stable version it is the same):

    * The problem arises in `assign_stack_temp_for_type' because the size is -1 (line: 1750, gcc/gcc/function.c:663)
    * The size is generated by `assign_temp' (line 1744-1746, gcc/gcc/function.c:882)
    * from the return value -1 of `int_size_in_bytes' (line 1164-1173, 1732-1739, gcc/gcc/tree.c:1209)
          * line 1174-1731 shows the elements of *t
          * line 599-1156 shows the elements of *type, passed to `int_size_in_bytes'
    * `assign_temp' is called by `expand_call' (line 19, 579-586, gcc/gcc/calls.c:2264)
          * line 21-578 shows the elements of *exp, passed as `TREE_TYPE (exp)' to `assign_temp'

That's all what I found. I hope it is a little bit helpfull to you.

With best regards
Michael Foerster

PS.: attached file adabug.tar.b2 (bzip compressed) containing:

   1. gnat_bug_files.txt: adafiles required for gnatchop
   2. gdb_session_cvs_code.log: my gdb session
   3. .gdbinit used by my gdb session
 

==============================
Michael Fo"rster
Grillstr.6
D84453 Mu"hldorf

e-mail: h.michael.foerster@web.de
e-mail office: michael.foerster@m.eads.net

tel: +49 8631 140158
tel office: +49 89 607 26811
==============================
 
 
 

Attachment: adabug.tar.b2
Description: Binary data


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