public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/42073]  New: Infinite loop when parsing a project file, alpha only
@ 2009-11-16 23:08 ludovic at ludovic-brenta dot org
  2009-11-17 10:28 ` [Bug ada/42073] [4.4 regression] " ludovic at ludovic-brenta dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 13+ messages in thread
From: ludovic at ludovic-brenta dot org @ 2009-11-16 23:08 UTC (permalink / raw)
  To: gcc-bugs

On alpha-linux-gnu, gnatmake enters an infinite loop consuming 100% CPU while
parsing this project file:

project GNADE_Common_Build is

   Soversion := External ("soversion");

   type Lib_Type is ("static", "dynamic");

   Libtype : Lib_Type := external ("LIBTYPE");

   for Languages use ("Ada");

   --  At install time, Source_Dirs must reflect the build source
   --  directories
   for Source_Dirs use ("../support");

   --  Library_Dir must be a single directory containing all the
   --  library files (*.ali, *.a, *.so) for all of the gnade packages.
   for Library_Dir use "tmp";

   --  Object_Dir is only used at build time; it must be distinct from
   --  the other package object directories, and from the library
   --  directory.
   for Object_Dir use "tmp/common-" & Libtype;

   for Library_Name use "gnadecommon";
   for Library_Kind use Libtype;

   --  Library_Version is not used when Library_Kind is "static"
   for Library_Version use "libgnadecommon.so." & Soversion;

   package Compiler is
      for Default_Switches ("Ada") use
        ("-g",
         "-O2",
         "-gnat05",
         "-gnatfno",
         "-gnatwa",
         "-gnatVa",
         "-fstack-check");
   end Compiler;

end GNADE_Common_Build;

Steps to reproduce:
$ gnatmake -p -j1 -vP2 -Pdebian/gnade_common_build -XLIBTYPE=static 
-Xsoversion=1 -v
GPR_PROJECT_PATH=".:/usr/share/ada/adainclude/"
Project_Path_Name_Of ("debian/gnade_common_build",
"/home/lbrenta/gnade-1.6.2/");
   Trying /home/lbrenta/gnade-1.6.2//debian/gnade_common_build.gpr
Project_Name_From ("/home/lbrenta/gnade-1.6.2/debian/gnade_common_build.gpr")
(infinite loop)

gnatmake works with the same project file on all architectures I tried:
{amd64,hppa,i386,ia64,mips,mipsel,powerpc,s390,sparc}-linux-gnu, so this looks
like a code generation bug that affects gnatmake.

I have access to an alpha-linux-gnu machine, please tell me if I can help
narrow this problem down.


-- 
           Summary: Infinite loop when parsing a project file, alpha only
           Product: gcc
           Version: 4.4.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ludovic at ludovic-brenta dot org
 GCC build triplet: alpha-linux-gnu
  GCC host triplet: alpha-linux-gnu
GCC target triplet: alpha-linux-gnu


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


^ permalink raw reply	[flat|nested] 13+ messages in thread
[parent not found: <bug-42073-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2011-04-16 10:21 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-16 23:08 [Bug ada/42073] New: Infinite loop when parsing a project file, alpha only ludovic at ludovic-brenta dot org
2009-11-17 10:28 ` [Bug ada/42073] [4.4 regression] " ludovic at ludovic-brenta dot org
2009-11-17 17:48 ` ubizjak at gmail dot com
2009-11-17 19:56 ` ludovic at ludovic-brenta dot org
2009-11-17 21:45   ` Arnaud Charlet
2009-11-17 19:59 ` ludovic at ludovic-brenta dot org
2009-11-17 21:46 ` charlet at adacore dot com
2009-11-18 22:10 ` ludovic at ludovic-brenta dot org
2009-11-19 18:50 ` ludovic at ludovic-brenta dot org
2010-02-16 10:41 ` rguenth at gcc dot gnu dot org
2010-04-30  8:58 ` jakub at gcc dot gnu dot org
     [not found] <bug-42073-4@http.gcc.gnu.org/bugzilla/>
2010-10-01 11:50 ` jakub at gcc dot gnu.org
2011-04-16 10:21 ` jakub at gcc dot gnu.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).