public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/11096] New: i686-linux to sh-linux cross compiler fails to compile C++ files
@ 2003-06-05 4:41 dank@kegel.com
2003-06-05 4:43 ` [Bug target/11096] " dank@kegel.com
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: dank@kegel.com @ 2003-06-05 4:41 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11096
Summary: i686-linux to sh-linux cross compiler fails to compile
C++ files
Product: gcc
Version: 3.3
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: target
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: dank@kegel.com
CC: gcc-bugs@gcc.gnu.org
GCC build triplet: i686-linux
GCC host triplet: sh-linux
GCC target triplet: sh-linux
This is the same as bug 3774, but for SH instead of arm.
Compiling a 'hello, world' c++ program spews errors of the sort
.../g++-v3/bits/std_cstdio.h:145: `vfscanf' not declared
unless -D_ISOC9X_SOURCE is passed to the compiler.
The fix for arm appears to have been
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/arm/linux-elf.h.diff?r1=1.31&r2=1.32
which predefines _GNU_SOURCE, with the comment
/* The GNU C++ standard library currently requires _GNU_SOURCE *
Looks like other architectures might need this, too. I'm attaching a patch
for sh4. No idea if it's actually right yet, but it seems logical.
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/11096] i686-linux to sh-linux cross compiler fails to compile C++ files
2003-06-05 4:41 [Bug target/11096] New: i686-linux to sh-linux cross compiler fails to compile C++ files dank@kegel.com
@ 2003-06-05 4:43 ` dank@kegel.com
2003-06-05 14:27 ` dank@kegel.com
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: dank@kegel.com @ 2003-06-05 4:43 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11096
------- Additional Comments From dank@kegel.com 2003-06-05 04:43 -------
Created an attachment (id=4172)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=4172&action=view)
Patch that seems to resolve the problem
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/11096] i686-linux to sh-linux cross compiler fails to compile C++ files
2003-06-05 4:41 [Bug target/11096] New: i686-linux to sh-linux cross compiler fails to compile C++ files dank@kegel.com
2003-06-05 4:43 ` [Bug target/11096] " dank@kegel.com
@ 2003-06-05 14:27 ` dank@kegel.com
2003-06-08 1:51 ` dhazeghi@yahoo.com
2003-07-25 23:26 ` jbuck at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: dank@kegel.com @ 2003-06-05 14:27 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11096
------- Additional Comments From dank@kegel.com 2003-06-05 14:27 -------
Kaz says:
> OK for 3.3 as an sh-linux specific regression fix. Thanks.
> Ugh. Again, 3.4 includes this already.
See http://gcc.gnu.org/ml/gcc-patches/2003-06/msg00424.html
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/11096] i686-linux to sh-linux cross compiler fails to compile C++ files
2003-06-05 4:41 [Bug target/11096] New: i686-linux to sh-linux cross compiler fails to compile C++ files dank@kegel.com
2003-06-05 4:43 ` [Bug target/11096] " dank@kegel.com
2003-06-05 14:27 ` dank@kegel.com
@ 2003-06-08 1:51 ` dhazeghi@yahoo.com
2003-07-25 23:26 ` jbuck at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: dhazeghi@yahoo.com @ 2003-06-08 1:51 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11096
dhazeghi@yahoo.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
------- Additional Comments From dhazeghi@yahoo.com 2003-06-08 01:51 -------
Patch committed: http://gcc.gnu.org/ml/gcc-cvs/2003-06/msg00242.html. Thanks for fixing this
Dan.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/11096] i686-linux to sh-linux cross compiler fails to compile C++ files
2003-06-05 4:41 [Bug target/11096] New: i686-linux to sh-linux cross compiler fails to compile C++ files dank@kegel.com
` (2 preceding siblings ...)
2003-06-08 1:51 ` dhazeghi@yahoo.com
@ 2003-07-25 23:26 ` jbuck at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: jbuck at gcc dot gnu dot org @ 2003-07-25 23:26 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11096
jbuck at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4 |3.3.1
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2003-07-25 23:26 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-05 4:41 [Bug target/11096] New: i686-linux to sh-linux cross compiler fails to compile C++ files dank@kegel.com
2003-06-05 4:43 ` [Bug target/11096] " dank@kegel.com
2003-06-05 14:27 ` dank@kegel.com
2003-06-08 1:51 ` dhazeghi@yahoo.com
2003-07-25 23:26 ` jbuck at gcc dot gnu dot 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).