------- Comment #7 from rob1weld at aol dot com  2009-04-05 17:31 -------
I can build gcc with the Ada Language using Trunk revision 145337
but the changes made in the next revision cause the build to fail.


The Changelog indicates Richard Guenther made the changes on 2009-03-31.
There were no changes made to Ada, only to the middle-end (AFAIK).

# ./contrib/gcc_update -r 145338
Updating SVN tree
U    gcc/java/java-gimplify.c
U    gcc/java/ChangeLog
U    gcc/tree.h
U    gcc/ChangeLog
A    gcc/testsuite/gcc.dg/tree-ssa/pr23401.c
A    gcc/testsuite/gcc.dg/tree-ssa/pr27810.c
U    gcc/testsuite/ChangeLog
U    gcc/tree-eh.c
U    gcc/gimplify.c
U    gcc/tree-ssa-pre.c
U    gcc/tree-mudflap.c
U    gcc/gimple.c
U    gcc/gimple.h
U    gcc/tree-cfg.c
Updated to revision 145338.


I do not know the middle-end well enough to tamper with it. 

I would appreciate if the remainder of this work could be undertaken 
by someone else. I do not think that this is entirely Operating System 
specific, others may be affected too.


# gcc/xgcc -v
Using built-in specs.
Target: i386-unknown-openbsd4.5
Configured with: /home/user/gcc_trunk/configure --prefix=/usr/obj/gcc_installed
--enable-languages=c,ada,c++ --with-as=/usr/bin/as --with-ld=/usr/bin/ld
--with-gnu-as --with-gnu-ld --enable-sjlj-exceptions --enable-shared
--enable-multilib --enable-decimal-float --with-long-double-128 --with-tune=k8
--with-cpu=k8 --with-arch=k8 --enable-threads --sysconfdir=/etc
--mandir=/usr/local/man --infodir=/usr/local/info --disable-stage1-checking
--enable-checking=release --with-gmp=/usr/local --with-mpfr=/usr/local
Thread model: posix
gcc version 4.5.0 20090331 (experimental) [trunk revision 145338] (GCC)


../../xgcc -B../../ -c -g -O2   -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes  -gnatpg -gnata -I- -I../rts -I.
-I/home/user/gcc_trunk/gcc/ada /home/user/gcc_trunk/gcc/ada/prj-part.adb -o
prj-part.o
/home/user/gcc_trunk/gcc/ada/prj-part.adb: In function
'Prj.Part.Parse_Single_Project':
/home/user/gcc_trunk/gcc/ada/prj-part.adb:159: warning: 'Project' may be used
uninitialized in this function
/home/user/gcc_trunk/gcc/ada/prj-part.adb:159: note: 'Project' was declared
here
/home/user/gcc_trunk/gcc/ada/prj-part.adb:160: warning: 'Extends_All' may be
used uninitialized in this function
/home/user/gcc_trunk/gcc/ada/prj-part.adb:160: note: 'Extends_All' was declared
here
/home/user/gcc_trunk/gcc/ada/prj-part.adb:952: warning: 'Canonical_Path_Name'
may be used uninitialized in this function
/home/user/gcc_trunk/gcc/ada/prj-part.adb:953: warning: 'Project_Directory' may
be used uninitialized in this function
/home/user/gcc_trunk/gcc/ada/prj-part.adb:957: warning: 'Extending' may be used
uninitialized in this function
/home/user/gcc_trunk/gcc/ada/prj-part.adb:959: warning: 'Extended_Project' may
be used uninitialized in this function
/home/user/gcc_trunk/gcc/ada/prj-part.adb:965: warning: 'Name_From_Path' may be
used uninitialized in this function
/home/user/gcc_trunk/gcc/ada/prj-part.adb:966: warning: 'Name_Of_Project' may
be used uninitialized in this function
/home/user/gcc_trunk/gcc/ada/prj-part.adb:968: warning: 'Duplicated' may be
used uninitialized in this function
/home/user/gcc_trunk/gcc/ada/prj-part.adb:970: warning: 'First_With' may be
used uninitialized in this function
/home/user/gcc_trunk/gcc/ada/prj-part.adb:971: warning: 'Imported_Projects' may
be used uninitialized in this function
/home/user/gcc_trunk/gcc/ada/prj-part.adb:977: warning: 'Proj_Qualifier' may be
used uninitialized in this function
/home/user/gcc_trunk/gcc/ada/prj-part.adb:978: warning: 'Qualifier_Location'
may be used uninitialized in this function
/home/user/gcc_trunk/gcc/ada/prj-part.adb:939: warning: '<anonymous>' may be
used uninitialized in this function
/home/user/gcc_trunk/gcc/ada/prj-part.adb:939: warning: '<anonymous>' may be
used uninitialized in this function
/home/user/gcc_trunk/gcc/ada/prj-part.adb:961: warning:
'a_project_name_and_node.node' may be used uninitialized in this function

Unable to coalesce ssa_names 96 and 455 which are marked as MUST COALESCE.
first_with_96(ab) and  first_with_455(ab)
+===========================GNAT BUG DETECTED==============================+
| 4.5.0 20090331 (experimental) [trunk revision 145338]
(i386-unknown-openbsd4.5) GCC error:|
| SSA corruption                                                           |
| Error detected around /home/user/gcc_trunk/gcc/ada/prj-part.adb:939      |
| Please submit a bug report; see http://gcc.gnu.org/bugs.html.            |
| 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).                   |
+==========================================================================+

Please include these source files with error report
Note that list may not be accurate in some cases,
so please double check that the problem can still
be reproduced with the set of files listed.

/home/user/gcc_trunk/gcc/ada/prj-part.adb
/home/user/gcc_trunk/gcc/ada/prj-part.ads
/home/user/gcc_trunk/gcc/ada/prj.ads
/home/user/gcc_trunk/gcc/ada/casing.ads
/home/user/gcc_trunk/gcc/ada/types.ads
/home/user/gcc_trunk/gcc/ada/namet.ads
/home/user/gcc_trunk/gcc/ada/alloc.ads
/home/user/gcc_trunk/gcc/ada/table.ads
/home/user/gcc_trunk/gcc/ada/hostparm.ads
/home/user/gcc_trunk/gcc/ada/scans.ads
/home/user/gcc_trunk/gcc/ada/uintp.ads
/home/user/gcc_trunk/gcc/ada/urealp.ads
/home/user/gcc_trunk/gcc/ada/prj-tree.ads
/home/user/gcc_trunk/gcc/ada/prj-attr.ads
/home/user/gcc_trunk/gcc/ada/err_vars.ads
/home/user/gcc_trunk/gcc/ada/opt.ads
/home/user/gcc_trunk/gcc/ada/debug.ads
/home/user/gcc_trunk/gcc/ada/osint.ads
/home/user/gcc_trunk/gcc/ada/output.ads
/home/user/gcc_trunk/gcc/ada/prj-com.ads
/home/user/gcc_trunk/gcc/ada/prj-dect.ads
/home/user/gcc_trunk/gcc/ada/prj-err.ads
/home/user/gcc_trunk/gcc/ada/scng.ads
/home/user/gcc_trunk/gcc/ada/styleg.ads
/home/user/gcc_trunk/gcc/ada/errutil.ads
/home/user/gcc_trunk/gcc/ada/prj-ext.ads
/home/user/gcc_trunk/gcc/ada/sinput.ads
/home/user/gcc_trunk/gcc/ada/sinput-p.ads
/home/user/gcc_trunk/gcc/ada/snames.ads
/home/user/gcc_trunk/gcc/ada/table.adb
/home/user/gcc_trunk/gcc/ada/tree_io.ads

raised TYPES.UNRECOVERABLE_ERROR : comperr.adb:424
gmake[3]: *** [prj-part.o] Error 1
gmake[3]: Leaving directory `/usr/gcc_build/gcc/ada/tools'
gmake[2]: *** [gnattools-native] Error 2
gmake[2]: Leaving directory `/usr/gcc_build/gnattools'
gmake[1]: *** [all-gnattools] Error 2
gmake[1]: Leaving directory `/usr/gcc_build'
gmake: *** [all] Error 2


Thanks,
Rob


-- 

rob1weld at aol dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rguenther at suse dot de
           Severity|enhancement                 |major
          Component|ada                         |middle-end
           Keywords|                            |build, diagnostic, rejects-
                   |                            |valid
      Known to fail|                            |4.5.0
      Known to work|                            |4.4.0
            Summary|Unable to coalesce ssa_names|[4.5 regression] Revision
                   |96 and 455 which are marked |145338 breaks ability to
                   |as MUST COALESCE.           |build Ada


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

Reply via email to