Patchwork [committed] Fix failure of c-c++-common/Wunused-var-12.c on 32-bit hppa*-*-hpux*

login
register
mail settings
Submitter John David Anglin
Date Sept. 9, 2010, 1:57 a.m.
Message ID <20100909015756.GA24189@hiauly1.hia.nrc.ca>
Download mbox | patch
Permalink /patch/64250/
State New
Headers show

Comments

John David Anglin - Sept. 9, 2010, 1:57 a.m.
The attached change fixes c-c++-common/Wunused-var-12.c on 32-bit hppa*-*-hpux*.
The -fno-common option because common has a maximum alignment of eight byte.

Tested on hppa2.0w-hp-hpux11.11 and hppa64-hp-hpux11.11.  Committed to trunk.

Dave

Patch

Index: c-c++-common/Wunused-var-12.c
===================================================================
--- c-c++-common/Wunused-var-12.c	(revision 163936)
+++ c-c++-common/Wunused-var-12.c	(working copy)
@@ -1,6 +1,7 @@ 
 /* PR c++/44780 */
 /* { dg-do compile } */
 /* { dg-options "-Wunused" } */
+/* { dg-options "-Wunused -fno-common" { target { { hppa*-*-hpux* } && { ! hppa*64*-*-* } } } } */
 
 typedef double vec __attribute__ ((__vector_size__ (16)));
 vec c, d;