[#6093] test g++.dg/cpp/_Pragma1.C fail with bfin-elf

Document created by Aaronwu Employee on Oct 17, 2013
Version 1Show Document
  • View in full screen mode

[#6093] test g++.dg/cpp/_Pragma1.C fail with bfin-elf

Submitted By: Vivi Li

Open Date

2010-07-07 05:47:29     Close Date

2010-07-19 02:03:02

Priority:

Medium     Assignee:

Vivi Li

David Gibson

Board:

N/A     Silicon Revision:

Resolution:

Fixed     Fixed In Release:

2010R1

Processor:

ALL     

Host Operating System:

toolchain rev.:

    kernel rev.:

State:

Closed     Found In Release:

2010R1

Is this bug repeatable?:

N/A     

Summary: test g++.dg/cpp/_Pragma1.C fail with bfin-elf

Details:

 

test g++.dg/cpp/_Pragma1.C fail with bfin-elf.

I think it's a similar problem with bug [#6089].

 

--

Executing on host: bfin-elf-c++ /home/test/work/cruise/checkouts/toolchain/gcc-4.3/gcc/testsuite/g++.dg/cpp/_Pragma1.C   -fmessage-length=0   -ansi -pedantic-errors -Wno-long-long  -fno-show-column -S  -msim  -o _Pragma1.s    (timeout = 300)

spawn bfin-elf-c++ /home/test/work/cruise/checkouts/toolchain/gcc-4.3/gcc/testsuite/g++.dg/cpp/_Pragma1.C -fmessage-length=0 -ansi -pedantic-errors -Wno-long-long -fno-show-column -S -msim -o _Pragma1.s^M

/home/test/work/cruise/checkouts/toolchain/gcc-4.3/gcc/testsuite/g++.dg/cpp/_Pragma1.C:9: warning: #pragma pack(push[, id], <n>) is not supported on this target^M

/home/test/work/cruise/checkouts/toolchain/gcc-4.3/gcc/testsuite/g++.dg/cpp/_Pragma1.C:11: warning: #pragma pack(pop[, id], <n>) is not supported on this target^M

output is:

/home/test/work/cruise/checkouts/toolchain/gcc-4.3/gcc/testsuite/g++.dg/cpp/_Pragma1.C:9: warning: #pragma pack(push[, id], <n>) is not supported on this target^M

/home/test/work/cruise/checkouts/toolchain/gcc-4.3/gcc/testsuite/g++.dg/cpp/_Pragma1.C:11: warning: #pragma pack(pop[, id], <n>) is not supported on this target^M

 

FAIL: g++.dg/cpp/_Pragma1.C (test for excess errors)

--

 

Follow-ups

 

--- David Gibson                                             2010-07-07 09:08:39

Can you confirm that those a definitely the errors you encountered?

When I run the test, I encounter different errors:

 

~/gnu_work/checkouts/toolchain/gcc-4.3/gcc/testsuite/gcc.dg/cpp$ bfin-elf-c++

_Pragma1.c -fmessage-length=0 -ansi -pedantic-errors -Wno-long-long

-fno-show-column -S -msim

_Pragma1.c:10: error: attempt to use poisoned "p1"

_Pragma1.c:14: error: attempt to use poisoned "p2"

_Pragma1.c:18: error: missing binary operator before token "_Pragma"

_Pragma1.c:27: error: attempt to use poisoned "p4"

_Pragma1.c:28: error: attempt to use poisoned "p5"

_Pragma1.c:10: error: ‘p1’ does not name a type

 

--- Vivi Li                                                  2010-07-07 23:03:28

I can always reproduce this error.

 

--

test@40:~/work/cruise/checkouts/toolchain/gcc-4.3/gcc/testsuite/g++.dg/cpp>

~/work/cruise/temp/bfin-elf/bin/bfin-elf-c++ _Pragma1.C -fmessage-length=0 -ansi

-pedantic-errors -Wno-long-long -fno-show-column -S -msim

_Pragma1.C:9: warning: #pragma pack(push[, id], <n>) is not supported on

this target

_Pragma1.C:11: warning: #pragma pack(pop[, id], <n>) is not supported on

this target

--

 

--- David Gibson                                             2010-07-16 05:04:29

The test is for a compiler feature unsupported in the current gcc compilers for

blackfin (Pragma pack, enabled by the GCC feature macros

HANDLE_PRAGMA_PACK_PUSH_POP and HANDLE_PRAGMA_PACK_WITH_EXPANSION).

Checking in a change to the testcase so it is avoided in future.

I'm not sure how this passed in the past.

Same as issue #6089.

 

Test has been modified to skip for Blackfin, and passed to Vivi.

 

--- Vivi Li                                                  2010-07-19 02:03:02

OK, so close it.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes