public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug driver/35665]  New: FAIL: gfortran.dg/include_2.f90  -O  (test for excess error)
@ 2008-03-22 17:43 danglin at gcc dot gnu dot org
  2008-03-22 17:45 ` [Bug driver/35665] " dave at hiauly1 dot hia dot nrc dot ca
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: danglin at gcc dot gnu dot org @ 2008-03-22 17:43 UTC (permalink / raw)
  To: gcc-bugs

Executing on host: /xxx/gnu/gcc/objdir/gcc/testsuite/gfortran/../../gfortran
-B/
xxx/gnu/gcc/objdir/gcc/testsuite/gfortran/../../
/xxx/gnu/gcc/gcc/gcc/testsuite/
gfortran.dg/include_1.f90   -O  -g3 -S  -o include_1.s    (timeout = 600)PASS:
gfortran.dg/include_1.f90  -O  (test for excess errors)
Executing on host: /xxx/gnu/gcc/objdir/gcc/testsuite/gfortran/../../gfortran
-B/
xxx/gnu/gcc/objdir/gcc/testsuite/gfortran/../../
/xxx/gnu/gcc/gcc/gcc/testsuite/
gfortran.dg/include_2.f90   -O  -fpreprocessed -g3 
-L/xxx/gnu/gcc/objdir/hppa1.
1-hp-hpux10.20/./libgfortran/.libs
-L/xxx/gnu/gcc/objdir/hppa1.1-hp-hpux10.20/./
libgfortran/.libs -L/xxx/gnu/gcc/objdir/hppa1.1-hp-hpux10.20/./libiberty  -lm   
-o include_2.exe    (timeout = 600)/var/tmp//ccufRDE8.c:1: error: stray '#' in
program
/var/tmp//ccufRDE8.c:1: error: expected '=', ',', ';', 'asm' or '__attribute__' 
before '__cplusplus'
/var/tmp//ccufRDE8.c:3: error: stray '#' in program
/var/tmp//ccufRDE8.c:29: error: stray '#' in program
/var/tmp//ccufRDE8.c:31: error: stray '#' in program/var/tmp//ccufRDE8.c:31:
error: expected '=', ',', ';', 'asm' or '__attribute__'
 at end of input
collect2: gcc returned 1 exit status
compiler exited with status 1
output is:
/var/tmp//ccufRDE8.c:1: error: stray '#' in program
/var/tmp//ccufRDE8.c:1: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '__cplusplus'
/var/tmp//ccufRDE8.c:3: error: stray '#' in program
/var/tmp//ccufRDE8.c:29: error: stray '#' in program
/var/tmp//ccufRDE8.c:31: error: stray '#' in program
/var/tmp//ccufRDE8.c:31: error: expected '=', ',', ';', 'asm' or
'__attribute__' at end of input
collect2: gcc returned 1 exit status

FAIL: gfortran.dg/include_2.f90  -O  (test for excess errors)
Excess errors:
/var/tmp//ccufRDE8.c:1: error: stray '#' in program
/var/tmp//ccufRDE8.c:1: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '__cplusplus'
/var/tmp//ccufRDE8.c:3: error: stray '#' in program
/var/tmp//ccufRDE8.c:29: error: stray '#' in program
/var/tmp//ccufRDE8.c:31: error: stray '#' in program
/var/tmp//ccufRDE8.c:31: error: expected '=', ',', ';', 'asm' or
'__attribute__' at end of input
collect2: gcc returned 1 exit status


-- 
           Summary: FAIL: gfortran.dg/include_2.f90  -O  (test for excess
                    error)
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: driver
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: danglin at gcc dot gnu dot org
 GCC build triplet: hppa1.1-hp-hpux10.20
  GCC host triplet: hppa1.1-hp-hpux10.20
GCC target triplet: hppa1.1-hp-hpux10.20


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug driver/35665] FAIL: gfortran.dg/include_2.f90  -O  (test for excess error)
  2008-03-22 17:43 [Bug driver/35665] New: FAIL: gfortran.dg/include_2.f90 -O (test for excess error) danglin at gcc dot gnu dot org
@ 2008-03-22 17:45 ` dave at hiauly1 dot hia dot nrc dot ca
  2008-03-22 20:49 ` danglin at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2008-03-22 17:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from dave at hiauly1 dot hia dot nrc dot ca  2008-03-22 17:45 -------
Subject: Re:   New: FAIL: gfortran.dg/include_2.f90  -O
        (test for excess error)

Attached driver dump.

Dave


------- Comment #2 from dave at hiauly1 dot hia dot nrc dot ca  2008-03-22 17:45 -------
Created an attachment (id=15360)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15360&action=view)


-- 


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug driver/35665] FAIL: gfortran.dg/include_2.f90  -O  (test for excess error)
  2008-03-22 17:43 [Bug driver/35665] New: FAIL: gfortran.dg/include_2.f90 -O (test for excess error) danglin at gcc dot gnu dot org
  2008-03-22 17:45 ` [Bug driver/35665] " dave at hiauly1 dot hia dot nrc dot ca
@ 2008-03-22 20:49 ` danglin at gcc dot gnu dot org
  2008-04-09  0:13 ` danglin at gcc dot gnu dot org
  2008-04-09  0:14 ` danglin at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: danglin at gcc dot gnu dot org @ 2008-03-22 20:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from danglin at gcc dot gnu dot org  2008-03-22 20:48 -------
The problem seems to be the -fpreprocessed option in the gfortran command.
We need to run the preprocessor to handle the

#ifdef __cplusplus
extern "C" {
#endif

and

#ifdef __cplusplus
}
#endif


-- 


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug driver/35665] FAIL: gfortran.dg/include_2.f90  -O  (test for excess error)
  2008-03-22 17:43 [Bug driver/35665] New: FAIL: gfortran.dg/include_2.f90 -O (test for excess error) danglin at gcc dot gnu dot org
  2008-03-22 17:45 ` [Bug driver/35665] " dave at hiauly1 dot hia dot nrc dot ca
  2008-03-22 20:49 ` danglin at gcc dot gnu dot org
@ 2008-04-09  0:13 ` danglin at gcc dot gnu dot org
  2008-04-09  0:14 ` danglin at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: danglin at gcc dot gnu dot org @ 2008-04-09  0:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from danglin at gcc dot gnu dot org  2008-04-09 00:12 -------
Subject: Bug 35665

Author: danglin
Date: Wed Apr  9 00:11:58 2008
New Revision: 134116

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=134116
Log:
        PR driver/35665
        * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/collect2.c


-- 


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug driver/35665] FAIL: gfortran.dg/include_2.f90  -O  (test for excess error)
  2008-03-22 17:43 [Bug driver/35665] New: FAIL: gfortran.dg/include_2.f90 -O (test for excess error) danglin at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2008-04-09  0:13 ` danglin at gcc dot gnu dot org
@ 2008-04-09  0:14 ` danglin at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: danglin at gcc dot gnu dot org @ 2008-04-09  0:14 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from danglin at gcc dot gnu dot org  2008-04-09 00:13 -------
Fixed on trunk.


-- 

danglin at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-04-09  0:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-22 17:43 [Bug driver/35665] New: FAIL: gfortran.dg/include_2.f90 -O (test for excess error) danglin at gcc dot gnu dot org
2008-03-22 17:45 ` [Bug driver/35665] " dave at hiauly1 dot hia dot nrc dot ca
2008-03-22 20:49 ` danglin at gcc dot gnu dot org
2008-04-09  0:13 ` danglin at gcc dot gnu dot org
2008-04-09  0:14 ` danglin at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).