This is the mail archive of the gcc-bugs@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]

[Bug target/49402] New: Duplicate use of v850.opt


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49402

           Summary: Duplicate use of v850.opt
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Keywords: build
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: amylaar@gcc.gnu.org
                CC: nickc@redhat.com
            Blocks: 47093
            Target: v850-elf


gcc -c   -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wwrite-strings
-Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute
-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror
-Wold-style-definition -Wc++-compat -fno-common  -DHAVE_CONFIG_H
-DGENERATOR_FILE -I. -Ibuild -I../../../gcc/gcc -I../../../gcc/gcc/build
-I../../../gcc/gcc/../include -I../../../gcc/gcc/../libcpp/include
-I/opt/cfarm/mpc/include  -I../../../gcc/gcc/../libdecnumber
-I../../../gcc/gcc/../libdecnumber/dpd -I../libdecnumber    \
                -o build/genflags.o ../../../gcc/gcc/genflags.c
In file included from ./tm.h:14:0,
                 from ../../../gcc/gcc/genflags.c:27:
./options.h:3422:0: error: "MASK_US_BIT_SET" redefined [-Werror]
./options.h:3421:0: note: this is the location of the previous definition
./options.h:3424:0: error: "MASK_APP_REGS" redefined [-Werror]
./options.h:3423:0: note: this is the location of the previous definition
./options.h:3426:0: error: "MASK_BIG_SWITCH" redefined [-Werror]
./options.h:3425:0: note: this is the location of the previous definition
./options.h:3428:0: error: "MASK_DEBUG" redefined [-Werror]
./options.h:3427:0: note: this is the location of the previous definition
./options.h:3430:0: error: "MASK_DISABLE_CALLT" redefined [-Werror]
./options.h:3429:0: note: this is the location of the previous definition
./options.h:3432:0: error: "MASK_EP" redefined [-Werror]
./options.h:3431:0: note: this is the location of the previous definition
./options.h:3434:0: error: "MASK_GHS" redefined [-Werror]
./options.h:3433:0: note: this is the location of the previous definition
The v850-elf build fails with:

./options.h:3436:0: error: "MASK_JUMP_TABLES_IN_DATA_SECTION" redefined
[-Werror]
./options.h:3435:0: note: this is the location of the previous definition
./options.h:3438:0: error: "MASK_LONG_CALLS" redefined [-Werror]
./options.h:3437:0: note: this is the location of the previous definition
./options.h:3440:0: error: "MASK_NO_STRICT_ALIGN" redefined [-Werror]
./options.h:3439:0: note: this is the location of the previous definition
./options.h:3442:0: error: "MASK_PROLOG_FUNCTION" redefined [-Werror]
./options.h:3441:0: note: this is the location of the previous definition
./options.h:3444:0: error: "MASK_SMALL_SLD" redefined [-Werror]
./options.h:3443:0: note: this is the location of the previous definition
./options.h:3446:0: error: "MASK_V850" redefined [-Werror]
./options.h:3445:0: note: this is the location of the previous definition
./options.h:3448:0: error: "MASK_V850E" redefined [-Werror]
./options.h:3447:0: note: this is the location of the previous definition
./options.h:3450:0: error: "MASK_V850E1" redefined [-Werror]
./options.h:3449:0: note: this is the location of the previous definition
./options.h:3452:0: error: "MASK_V850E2" redefined [-Werror]
./options.h:3451:0: note: this is the location of the previous definition
./options.h:3454:0: error: "MASK_V850E2V3" redefined [-Werror]
./options.h:3453:0: note: this is the location of the previous definition
./options.h:3455:2: error: #error too many target masks
cc1: all warnings being treated as errors

make[2]: *** [build/genflags.o] Error 1

I see that v850.opt ends up being used twice:

amylaar@gcc20:~/pr46489/jun13/multi2/v850-elf/gcc$ grep 'v850\.opt' *
config.log:extra_opt_files=' $(srcdir)/config/v850/v850.opt
$(srcdir)/config/v850/v850.opt'
config.status:S["extra_opt_files"]=" $(srcdir)/config/v850/v850.opt
$(srcdir)/config/v850/v850.opt"
Makefile:extra_opt_files= $(srcdir)/config/v850/v850.opt
$(srcdir)/config/v850/v850.opt


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