* [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; 10+ 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] 10+ 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; 10+ 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] 10+ 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; 10+ 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] 10+ 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; 10+ 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] 10+ 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; 10+ 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] 10+ 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; 10+ 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] 10+ 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; 10+ 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] 10+ 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; 10+ 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] 10+ 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; 10+ 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] 10+ messages in thread