This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/11244] New: pipe hang when program compiled with -maix64 and -static
- From: "kminola at eng dot umd dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Jun 2003 20:51:27 -0000
- Subject: [Bug c/11244] New: pipe hang when program compiled with -maix64 and -static
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11244
Summary: pipe hang when program compiled with -maix64 and -static
Product: gcc
Version: 3.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: kminola@eng.umd.edu
CC: gcc-bugs@gcc.gnu.org
GCC build triplet: powerpc-ibm-aix5.2.0.0
GCC host triplet: powerpc-ibm-aix5.2.0.0
GCC target triplet: powerpc-ibm-aix5.2.0.0
/* On a powerpc-ibm-aix5.2.0.0 using
% gcc -v
Reading specs from
/data/gcc-3.3/AIX/lib/gcc-lib/powerpc-ibm-aix5.2.0.0/3.3/specs
Configured with: ../gcc-3.3/configure --enable-languages=c
--prefix=/data/gcc-3.3/AIX
Thread model: aix
gcc version 3.3
%
the following bug was observed.
% gcc -o foo foo.c -maix64 -static
% echo 10 | foo <- hangs!!!
Both -maix64 and -static as arguments seem to be necessary
to demonstrate the bug.
Using the native cc compiler and similar arguments, there
is no bug:
% cc -o foo foo.c -bstatic -q64 -bI:/lib/syscalls.exp
% echo 10 | foo
%
The bug also occurs using gcc-20030616 (the latest development
snapshot).
*/
main()
{
return 0;
}