This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] config/rs6000/sysv4.h C90


Andreas Tobler <toa@pop.agri.ch> writes:

> Hi,
>
> this patchlet brings linuxppc back in bootstrap land.
>
> Ok on mainline?

This falls under the "ISO C90 conversion" rule and is thereby
approved, please commit it (assuming it passes bootstrap/regtesting
but I cannot see why it shouldn't),

Thanks,
Andreas

> Andreas
>
> 2003-11-01  Andreas Tobler  <a.tobler@schweiz.ch>
>
> 	* config/rs6000/sysv4.h (EXTRA_SECTION_FUNCTIONS): Update
> 	to C90 prototypes.
>
> Index: gcc/config/rs6000/sysv4.h
> ===================================================================
> RCS file: /cvs/gcc/gcc/gcc/config/rs6000/sysv4.h,v
> retrieving revision 1.140
> diff -u -r1.140 sysv4.h
> --- gcc/config/rs6000/sysv4.h	28 Oct 2003 19:46:41 -0000	1.140
> +++ gcc/config/rs6000/sysv4.h	1 Nov 2003 09:36:17 -0000
> @@ -468,7 +468,7 @@
>  
>  #define	TOC_SECTION_FUNCTION						\
>  void									\
> -toc_section ()								\
> +toc_section (void)							\
>  {									\
>    if (in_section != in_toc)						\
>      {									\
> @@ -510,14 +510,14 @@
>  }									\
>  									\
>  extern int in_toc_section (void);					\
> -int in_toc_section ()							\
> +int in_toc_section (void)						\
>  {									\
>    return in_section == in_toc;						\
>  }
>  
>  #define	SDATA_SECTION_FUNCTION						\
>  void									\
> -sdata_section ()							\
> +sdata_section (void)							\
>  {									\
>    if (in_section != in_sdata)						\
>      {									\
> @@ -528,7 +528,7 @@
>  
>  #define	SDATA2_SECTION_FUNCTION						\
>  void									\
> -sdata2_section ()							\
> +sdata2_section (void)							\
>  {									\
>    if (in_section != in_sdata2)						\
>      {									\
> @@ -539,7 +539,7 @@
>  
>  #define	SBSS_SECTION_FUNCTION						\
>  void									\
> -sbss_section ()								\
> +sbss_section (void)							\
>  {									\
>    if (in_section != in_sbss)						\
>      {									\
> @@ -550,7 +550,7 @@
>  
>  #define	INIT_SECTION_FUNCTION						\
>  void									\
> -init_section ()								\
> +init_section (void)							\
>  {									\
>    if (in_section != in_init)						\
>      {									\
> @@ -561,7 +561,7 @@
>  
>  #define	FINI_SECTION_FUNCTION						\
>  void									\
> -fini_section ()								\
> +fini_section (void)							\
>  {									\
>    if (in_section != in_fini)						\
>      {									\

Andreas
-- 
 Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
  SuSE Linux AG, Deutschherrnstr. 15-19, 90429 Nürnberg, Germany
   GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126

Attachment: pgp00000.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]