public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/14537] New: sparc-rtems predefines unix
@ 2004-03-11 19:42 joel at gcc dot gnu dot org
2004-03-11 19:43 ` [Bug target/14537] " joel at gcc dot gnu dot org
` (8 more replies)
0 siblings, 9 replies; 11+ messages in thread
From: joel at gcc dot gnu dot org @ 2004-03-11 19:42 UTC (permalink / raw)
To: gcc-bugs
sparc-rtems is built using Solaris specific config/sparc/* files and
as a result ends up with unix predefined.
NOTE: sparc-elf may also suffer from this but this was not investigated.
--
Summary: sparc-rtems predefines unix
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: joel at gcc dot gnu dot org
CC: cjohns at cybertec dot com dot au,corsepiu at faw dot
uni-ulm dot de,gcc-bugs at gcc dot gnu dot org
GCC target triplet: sparc-rtems
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14537
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/14537] sparc-rtems predefines unix
2004-03-11 19:42 [Bug target/14537] New: sparc-rtems predefines unix joel at gcc dot gnu dot org
@ 2004-03-11 19:43 ` joel at gcc dot gnu dot org
2004-03-11 19:47 ` joel at gcc dot gnu dot org
` (7 subsequent siblings)
8 siblings, 0 replies; 11+ messages in thread
From: joel at gcc dot gnu dot org @ 2004-03-11 19:43 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
OtherBugsDependingO| |14538
nThis| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14537
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/14537] sparc-rtems predefines unix
2004-03-11 19:42 [Bug target/14537] New: sparc-rtems predefines unix joel at gcc dot gnu dot org
2004-03-11 19:43 ` [Bug target/14537] " joel at gcc dot gnu dot org
@ 2004-03-11 19:47 ` joel at gcc dot gnu dot org
2004-03-11 20:24 ` joel at gcc dot gnu dot org
` (6 subsequent siblings)
8 siblings, 0 replies; 11+ messages in thread
From: joel at gcc dot gnu dot org @ 2004-03-11 19:47 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From joel at gcc dot gnu dot org 2004-03-11 19:47 -------
Created an attachment (id=5902)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5902&action=view)
patch to rewrite config/sparc/rtemself.h
Please review so I can commit this before 3.4.0.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14537
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/14537] sparc-rtems predefines unix
2004-03-11 19:42 [Bug target/14537] New: sparc-rtems predefines unix joel at gcc dot gnu dot org
2004-03-11 19:43 ` [Bug target/14537] " joel at gcc dot gnu dot org
2004-03-11 19:47 ` joel at gcc dot gnu dot org
@ 2004-03-11 20:24 ` joel at gcc dot gnu dot org
2004-03-11 21:36 ` mmitchel at gcc dot gnu dot org
` (5 subsequent siblings)
8 siblings, 0 replies; 11+ messages in thread
From: joel at gcc dot gnu dot org @ 2004-03-11 20:24 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From joel at gcc dot gnu dot org 2004-03-11 20:24 -------
Based upon a review of config.gcc, I believe sparc-elf, sparc64-elf and
sparclite-elf have the same problem since they include the solaris specific
config/sparc files.
The embedded sparc targets could probably be modified in a similar way and
longer term all share some common underlying file(s).
This has been a lurking issue but not a critical one. We added a stub for
mprotect() to RTEMS a long time ago to workaround this the first time.
But now the gnat run-time checks for defined(unix) and decides
it is on a unix box instead of an embedded sparc. This results
in real breakage.
Given the complexity of the conditionals in some of the Ada run-time code, I
wouldn't be surprised if they have discovered other cpp predefine
inconsistencies and are covering them up. Look at gcc/ada/init.c and
gcc/ada/sysdep.c have some pretty complicated conditionals. I have to
wonder if some vxworks target doesn't have this problem based upon this
code from ctrl_c.c:
#if (defined (_AIX) || defined (unix)) && !defined (__vxworks)
which I read as meaning there is some VxWorks target with unix defined.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14537
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/14537] sparc-rtems predefines unix
2004-03-11 19:42 [Bug target/14537] New: sparc-rtems predefines unix joel at gcc dot gnu dot org
` (2 preceding siblings ...)
2004-03-11 20:24 ` joel at gcc dot gnu dot org
@ 2004-03-11 21:36 ` mmitchel at gcc dot gnu dot org
2004-03-13 16:06 ` gdr at gcc dot gnu dot org
` (4 subsequent siblings)
8 siblings, 0 replies; 11+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-03-11 21:36 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-03-11 21:35 -------
This is OK for 3.4.0.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14537
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/14537] sparc-rtems predefines unix
2004-03-11 19:42 [Bug target/14537] New: sparc-rtems predefines unix joel at gcc dot gnu dot org
` (3 preceding siblings ...)
2004-03-11 21:36 ` mmitchel at gcc dot gnu dot org
@ 2004-03-13 16:06 ` gdr at gcc dot gnu dot org
2004-03-22 2:23 ` joel at gcc dot gnu dot org
` (3 subsequent siblings)
8 siblings, 0 replies; 11+ messages in thread
From: gdr at gcc dot gnu dot org @ 2004-03-13 16:06 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
OtherBugsDependingO|14538 |
nThis| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14537
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/14537] sparc-rtems predefines unix
2004-03-11 19:42 [Bug target/14537] New: sparc-rtems predefines unix joel at gcc dot gnu dot org
` (4 preceding siblings ...)
2004-03-13 16:06 ` gdr at gcc dot gnu dot org
@ 2004-03-22 2:23 ` joel at gcc dot gnu dot org
2004-04-07 2:57 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 11+ messages in thread
From: joel at gcc dot gnu dot org @ 2004-03-22 2:23 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |mark at codesourcery dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14537
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/14537] sparc-rtems predefines unix
2004-03-11 19:42 [Bug target/14537] New: sparc-rtems predefines unix joel at gcc dot gnu dot org
` (5 preceding siblings ...)
2004-03-22 2:23 ` joel at gcc dot gnu dot org
@ 2004-04-07 2:57 ` pinskia at gcc dot gnu dot org
2004-04-07 12:56 ` joel at oarcorp dot com
2004-05-29 23:12 ` mmitchel at gcc dot gnu dot org
8 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-07 2:57 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-07 02:57 -------
This patch was okayed for 3.4.0 but never applied, Mark I know you do not want any
patch which can cause many problems at this point as we are about to release but is this
still okay to apply for 3.4.0? Joel if Mark says it is okay, then please apply right away as
the release is near.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-04-07 02:57:19
date| |
Target Milestone|--- |3.4.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14537
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/14537] sparc-rtems predefines unix
2004-03-11 19:42 [Bug target/14537] New: sparc-rtems predefines unix joel at gcc dot gnu dot org
` (6 preceding siblings ...)
2004-04-07 2:57 ` pinskia at gcc dot gnu dot org
@ 2004-04-07 12:56 ` joel at oarcorp dot com
2004-05-29 23:12 ` mmitchel at gcc dot gnu dot org
8 siblings, 0 replies; 11+ messages in thread
From: joel at oarcorp dot com @ 2004-04-07 12:56 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From joel at oarcorp dot com 2004-04-07 12:56 -------
Subject: Re: sparc-rtems predefines unix
pinskia at gcc dot gnu dot org wrote:
> ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-07 02:57 -------
> This patch was okayed for 3.4.0 but never applied, Mark I know you do not want any
> patch which can cause many problems at this point as we are about to release but is this
> still okay to apply for 3.4.0? Joel if Mark says it is okay, then please apply right away as
> the release is near.
>
I have not committed this because I do not have a working
3.4.x sparc-rtems toolset. I got side-tracked with
the cross gnatmake and generic *-rtems run-time issues.
So this patch is off the table for 3.4.0.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14537
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/14537] sparc-rtems predefines unix
2004-03-11 19:42 [Bug target/14537] New: sparc-rtems predefines unix joel at gcc dot gnu dot org
` (7 preceding siblings ...)
2004-04-07 12:56 ` joel at oarcorp dot com
@ 2004-05-29 23:12 ` mmitchel at gcc dot gnu dot org
8 siblings, 0 replies; 11+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-05-29 23:12 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-05-28 22:15 -------
Joel --
I'm removing the target milestone for this PR since this doesn't look to me like
it's a regression. Still, if you get this working, you can apply the patch for
3.4.1.
-- Mark
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4.1 |---
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14537
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/14537] sparc-rtems predefines unix
[not found] <bug-14537-296@http.gcc.gnu.org/bugzilla/>
@ 2005-10-22 8:34 ` ebotcazou at gcc dot gnu dot org
0 siblings, 0 replies; 11+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2005-10-22 8:34 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from ebotcazou at gcc dot gnu dot org 2005-10-22 08:34 -------
2005-01-24 Eric Botcazou <ebotcazou@libertysurf.fr>
PR bootstrap/19364
* config.gcc (sparc-*-elf*): Remove sol2.h, sparc/sol2.h and
sparc/elf.h, add sparc/sp-elf.h.
(sparc-*-rtems*): Likewise.
(sparclite-*-elf*): Remove sol2.h, sparc/sol2.h, sparc/elf.h and
tm-dwarf2.h, add sparc/sp-elf.h.
(sparc86x-*-elf): Likewise.
(sparc64-*-elf*): Remove sol2.h, sparc/sol2.h and tm-dwarf2.h.
* config/sparc/liteelf.h (TARGET_SUB_OS_CPP_BUILTINS): Rename into
TARGET_OS_CPP_BUILTINS.
* config/sparc/sp86x-elf (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
* config/sparc/rtemself.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
Undefine it.
* config/sparc/openbsd64.h (NO_IMPLICIT_EXTERN_C): Undefine.
* config/sparc/sp64-elf.h (NO_IMPLICIT_EXTERN_C): New macro.
(SWITCH_TAKES_ARG): Likewise.
(LOCAL_LABEL_PREFIX): Likewise.
(ASM_GENERATE_INTERNAL_LABEL): Likewise.
(TARGET_N_FORMAT_TYPES): Delete.
(TARGET_FORMAT_TYPES): Likewise.
(ASM_DECLARE_FUNCTION_SIZE): Likewise.
* config/sparc/elf.h: Delete.
* config/sparc/sp-elf.h: New file.
--
ebotcazou at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ebotcazou at gcc dot gnu dot
| |org
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14537
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2005-10-22 8:34 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-11 19:42 [Bug target/14537] New: sparc-rtems predefines unix joel at gcc dot gnu dot org
2004-03-11 19:43 ` [Bug target/14537] " joel at gcc dot gnu dot org
2004-03-11 19:47 ` joel at gcc dot gnu dot org
2004-03-11 20:24 ` joel at gcc dot gnu dot org
2004-03-11 21:36 ` mmitchel at gcc dot gnu dot org
2004-03-13 16:06 ` gdr at gcc dot gnu dot org
2004-03-22 2:23 ` joel at gcc dot gnu dot org
2004-04-07 2:57 ` pinskia at gcc dot gnu dot org
2004-04-07 12:56 ` joel at oarcorp dot com
2004-05-29 23:12 ` mmitchel at gcc dot gnu dot org
[not found] <bug-14537-296@http.gcc.gnu.org/bugzilla/>
2005-10-22 8:34 ` ebotcazou 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).