Bug 52777 - [4.8 Regression] ./options.h:3546:0: error: "MASK_SIO" redefined [-Werror]
Summary: [4.8 Regression] ./options.h:3546:0: error: "MASK_SIO" redefined [-Werror]
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: other (show other bugs)
Version: 4.8.0
: P3 normal
Target Milestone: 4.8.0
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-29 18:10 UTC by John David Anglin
Modified: 2012-09-07 11:19 UTC (History)
1 user (show)

See Also:
Host: hppa2.0w-hp-hpux11.11
Target: hppa2.0w-hp-hpux11.11
Build: hppa2.0w-hp-hpux11.11
Known to work:
Known to fail:
Last reconfirmed:


Attachments
A patch (254 bytes, patch)
2012-03-29 18:26 UTC, H.J. Lu
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description John David Anglin 2012-03-29 18:10:11 UTC
/test/gnu/gcc/objdir/./prev-gcc/g++ -B/test/gnu/gcc/objdir/./prev-gcc/ -B/opt/gn
u/gcc/gcc-4.8/hppa2.0w-hp-hpux11.11/bin/ -nostdinc++ -B/test/gnu/gcc/objdir/prev
-hppa2.0w-hp-hpux11.11/libstdc++-v3/src/.libs -B/test/gnu/gcc/objdir/prev-hppa2.
0w-hp-hpux11.11/libstdc++-v3/libsupc++/.libs -I/test/gnu/gcc/objdir/prev-hppa2.0
w-hp-hpux11.11/libstdc++-v3/include/hppa2.0w-hp-hpux11.11 -I/test/gnu/gcc/objdir
/prev-hppa2.0w-hp-hpux11.11/libstdc++-v3/include -I/test/gnu/gcc/gcc/libstdc++-v
3/libsupc++ -L/test/gnu/gcc/objdir/prev-hppa2.0w-hp-hpux11.11/libstdc++-v3/src/.
libs -L/test/gnu/gcc/objdir/prev-hppa2.0w-hp-hpux11.11/libstdc++-v3/libsupc++/.l
ibs -c   -g -O2 -DIN_GCC   -fno-exceptions -fno-rtti -W -Wall -Wno-narrowing -Ww
rite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wn
o-variadic-macros -Wno-overlength-strings -Werror -fno-common  -DHAVE_CONFIG_H -
I. -I. -I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/../include -I../../gcc/
gcc/../libcpp/include -I/opt/gnu/gcc/gmp/include  -I../../gcc/gcc/../libdecnumbe
r -I../../gcc/gcc/../libdecnumber/dpd -I../libdecnumber    ../../gcc/gcc/lto-wra
pper.c -o lto-wrapper.o
In file included from ../../gcc/gcc/lto-wrapper.c:47:0:
./options.h:3546:0: error: "MASK_SIO" redefined [-Werror]
./options.h:3543:0: note: this is the location of the previous definition
Comment 1 John David Anglin 2012-03-29 18:21:03 UTC
Based on the discussion regarding the removal of MaskExists,
the problem would appear to be with the option handling.
The "Mask" operation shouldn't have allocated the bit twice.
Comment 2 H.J. Lu 2012-03-29 18:26:06 UTC
Created attachment 27037 [details]
A patch

We don't need SIO and GNU_LD in pa.opt any more. Please
try this.
Comment 3 dave.anglin 2012-04-07 23:59:57 UTC
On 29-Mar-12, at 2:26 PM, hjl.tools at gmail dot com wrote:

> We don't need SIO and GNU_LD in pa.opt any more. Please
> try this.


I had come to the same conclusion.

Your message got caught as spam, so I didn't see it until today.

Thanks,
Dave
--
John David Anglin	dave.anglin@bell.net
Comment 4 dave.anglin 2012-04-10 00:51:35 UTC
On 29-Mar-12, at 2:26 PM, hjl.tools at gmail dot com wrote:

> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52777
>
> --- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> 2012-03-29  
> 18:26:06 UTC ---
> Created attachment 27037 [details]
>  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27037
> A patch
>
> We don't need SIO and GNU_LD in pa.opt any more. Please
> try this.


Patch is ok with a ChangeLog entry.

Thanks,
Dave
--
John David Anglin	dave.anglin@bell.net
Comment 5 hjl@gcc.gnu.org 2012-04-10 00:56:37 UTC
Author: hjl
Date: Tue Apr 10 00:56:27 2012
New Revision: 186257

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=186257
Log:
Remove SIO and GNU_LD from config/pa/pa.opt

2012-04-09  H.J. Lu  <hongjiu.lu@intel.com>

	PR other/52777
	* config/pa/pa.opt: Remove SIO and GNU_LD.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/pa/pa.opt
Comment 6 Richard Biener 2012-09-07 11:19:26 UTC
Fixed.