This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] darwin (resubmitted from 2003-07-02)
- From: Laurent GUERBY <laurent at guerby dot net>
- To: gcc-patches at gcc dot gnu dot org
- Cc: pinskia at physics dot uc dot edu
- Date: Tue, 06 Apr 2004 22:25:08 +0200
- Subject: [PATCH] darwin (resubmitted from 2003-07-02)
- References: <22D47B0E-876F-11D8-BAE8-000A959CABF2@mac.com> <FF181CAD-8770-11D8-B4F3-000393A6D2F2@physics.uc.edu> <1081281768.9591.19.camel@pc> <B71ECD72-8805-11D8-870C-000A95967F9E@physics.uc.edu> <1081282664.9591.23.camel@pc>
Sorry wrong list on the first try...
On Tue, 2004-04-06 at 22:17, Laurent GUERBY wrote:
> On Tue, 2004-04-06 at 22:05, Andrew Pinski wrote:
> > The only patch in that email (only) is what has not been applied yet.
> >
> > 2003-07-02 Andrew Pinski <pinskia@physics.uc.edu>
> >
> >
> > * config/darwin.c (darwin_encode_section_info): When the decl has
> > a DECL_INITIAL, it is only defined also when it is not a common.
> >
>
> Ok I missed it :).
>
> Could someone approve the patch? I've no darwin machine at home
> unfortunately.
>
> Laurent
>
> Index: darwin.c
> ===================================================================
> RCS file: /cvs/gcc/gcc/gcc/config/darwin.c,v
> retrieving revision 1.38
> diff -u -p -r1.38 darwin.c
> --- darwin.c 7 Jun 2003 17:11:38 -0000 1.38
> +++ darwin.c 2 Jul 2003 06:17:51 -0000
> @@ -997,7 +997,7 @@ darwin_encode_section_info (decl, rtl, f
> && !DECL_EXTERNAL (decl)
> && ((TREE_STATIC (decl)
> && (!DECL_COMMON (decl) || !TREE_PUBLIC (decl)))
> - || (DECL_INITIAL (decl)
> + || (!DECL_COMMON (decl) && DECL_INITIAL (decl)
> && DECL_INITIAL (decl) != error_mark_node)))
> defined = 1;
>
>
>