This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: (for:) warnings building mainline for x86_64-freebsd
- From: Loren James Rittle <rittle at latour dot rsch dot comm dot mot dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: dhazeghi at yahoo dot com
- Date: Wed, 20 Aug 2003 17:02:14 -0500 (CDT)
- Subject: PATCH: (for:) warnings building mainline for x86_64-freebsd
- Organization: Networks and Infrastructure Lab (IL02/2240), Motorola Labs
>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)); \