PATCH: (for:) warnings building mainline for x86_64-freebsd

Loren James Rittle rittle@latour.rsch.comm.mot.com
Wed Aug 20 22:02:00 GMT 2003


>In file included from tm.h:14,
>                 from ../../gcc/gcc/lcm.c:56:
>../../gcc/gcc/config/i386/freebsd.h:119:1: warning:
>"ASM_OUTPUT_MAX_SKIP_ALIGN" redefined
>In file included from tm.h:13,
>                 from ../../gcc/gcc/lcm.c:56:
>../../gcc/gcc/config/i386/x86-64.h:59:1: warning: this
>is the location of the previous definition

Hi Dara, This problem stems from a lack of clear direction on what is set
by a pure OS/CPU header file and what is set by the generic CPU files.

Committed as obvious based on report of problem.

	* config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Handle
	redefine warning.

Index: gcc/config/i386/freebsd.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/freebsd.h,v
retrieving revision 1.37
diff -c -r1.37 freebsd.h
*** gcc/config/i386/freebsd.h	11 Jul 2003 20:22:34 -0000	1.37
--- gcc/config/i386/freebsd.h	20 Aug 2003 21:50:43 -0000
***************
*** 116,121 ****
--- 116,122 ----
     This is used to align code labels according to Intel recommendations.  */
  
  #ifdef HAVE_GAS_MAX_SKIP_P2ALIGN
+ #undef  ASM_OUTPUT_MAX_SKIP_ALIGN
  #define ASM_OUTPUT_MAX_SKIP_ALIGN(FILE, LOG, MAX_SKIP)					\
    if ((LOG) != 0) {														\
      if ((MAX_SKIP) == 0) fprintf ((FILE), "\t.p2align %d\n", (LOG));	\



More information about the Gcc-patches mailing list