Mike Frysinger reported this bug for 4.1 Blackfin gcc. See
<http://blackfin.uclinux.org/tracker/index.php?func=detail&aid=1287&group_id=18&atid=145>.

$ gcc -o some/non/existent/dir/voodoo.o -c voodoo.i -pipe
Assembler messages:
FATAL: can't create some/non/existent/dir/voodoo.o: No such file or directory
<sits here forever>

I can reproduce it on native i686 GCC 4.1 branch and 4.2 HEAD.

My initial thought is the driver make cc1 write to the pipe and as read from
it. as exits because it cannot open the output file. Then cc1 should get
SIGPIPE and exit. But it seems it does not get the signal.

The gcc 4.0.3 coming with Ubuntu Dapper does not has this issue.

The as version is "GNU assembler 2.16.91 20060118 Debian GNU/Linux".


-- 
           Summary: gcc hang when compiling with -pipe
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: driver
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jzhang918 at gmail dot com
  GCC host triplet: i686-pc-linux-gnu


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

Reply via email to