public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/59346] New: [4.9 Regression] s-osinte.adb:107:35: expected type "Interfaces.C.long"
@ 2013-11-29 15:20 danglin at gcc dot gnu.org
  2013-11-29 16:05 ` [Bug ada/59346] " ebotcazou at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: danglin at gcc dot gnu.org @ 2013-11-29 15:20 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 59346
           Summary: [4.9 Regression] s-osinte.adb:107:35: expected type
                    "Interfaces.C.long"
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
          Assignee: unassigned at gcc dot gnu.org
          Reporter: danglin at gcc dot gnu.org
              Host: hppa2.0w-hp-hpux11.11
            Target: hppa2.0w-hp-hpux11.11
             Build: hppa2.0w-hp-hpux11.11

/test/gnu/gcc/objdir/./gcc/xgcc -B/test/gnu/gcc/objdir/./gcc/
-B/opt/gnu/gcc/gcc
-4.9/hppa2.0w-hp-hpux11.11/bin/
-B/opt/gnu/gcc/gcc-4.9/hppa2.0w-hp-hpux11.11/lib
/ -isystem /opt/gnu/gcc/gcc-4.9/hppa2.0w-hp-hpux11.11/include -isystem
/opt/gnu/
gcc/gcc-4.9/hppa2.0w-hp-hpux11.11/sys-include    -c -g -O2  -fPIC  -W -Wall
-gna
tpg -nostdinc   s-osinte.adb -o s-osinte.o
s-osinte.adb:107:35: expected type "Interfaces.C.long"
s-osinte.adb:107:35: found type "System.Os_Interface.time_t"
make[7]: *** [s-osinte.o] Error 1

# ls -l *osint*
lrwxr-xr-x 1 bin bin 44 Nov 21 05:43 s-osinte.adb ->
/test/gnu/gcc/gcc/gcc/ada/s-osinte-posix.adb
lrwxr-xr-x 1 bin bin 43 Nov 21 05:43 s-osinte.ads ->
/test/gnu/gcc/gcc/gcc/ada/s-osinte-hpux.ads

      return timespec'(tv_sec => S,
                       tv_nsec => time_t (Long_Long_Integer (F * 10#1#E9)));

Probably introduced by the following change:

2013-11-15  H.J. Lu  <hongjiu.lu@intel.com>

        PR ada/54040
        * s-linux-x32.ads: New file.
        * s-osprim-x32.adb: Likewise.
        * s-linux.ads (time_t): New type.
        * s-linux-alpha.ads (time_t):  Likewise.
        * s-linux-hppa.ads (time_t):  Likewise.
        * s-linux-mipsel.ads (time_t):  Likewise.
        * s-linux-sparc.ads (time_t):  Likewise.
        * s-osinte-linux.ads (time_t): Mark it private.  Replace long
        with System.Linux.time_t.
        (timespec): Replace long with time_t.
        * s-osinte-posix.adb (To_Timespec): Likewise.
        * s-taprop-linux.adb (timeval): Replace C.long with
        System.OS_Interface.time_t.
        * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS): Replace
        s-linux.ads with s-linux-x32.ads, s-osprim-posix.adb with
        s-osprim-x32.adb for x32.


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

* [Bug ada/59346] [4.9 Regression] s-osinte.adb:107:35: expected type "Interfaces.C.long"
  2013-11-29 15:20 [Bug ada/59346] New: [4.9 Regression] s-osinte.adb:107:35: expected type "Interfaces.C.long" danglin at gcc dot gnu.org
@ 2013-11-29 16:05 ` ebotcazou at gcc dot gnu.org
  2013-11-29 16:19 ` ebotcazou at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2013-11-29 16:05 UTC (permalink / raw)
  To: gcc-bugs

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

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2013-11-29
                 CC|                            |ebotcazou at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |ebotcazou at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Fixing.


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

* [Bug ada/59346] [4.9 Regression] s-osinte.adb:107:35: expected type "Interfaces.C.long"
  2013-11-29 15:20 [Bug ada/59346] New: [4.9 Regression] s-osinte.adb:107:35: expected type "Interfaces.C.long" danglin at gcc dot gnu.org
  2013-11-29 16:05 ` [Bug ada/59346] " ebotcazou at gcc dot gnu.org
@ 2013-11-29 16:19 ` ebotcazou at gcc dot gnu.org
  2013-11-29 16:20 ` ebotcazou at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2013-11-29 16:19 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Author: ebotcazou
Date: Fri Nov 29 16:19:36 2013
New Revision: 205532

URL: http://gcc.gnu.org/viewcvs?rev=205532&root=gcc&view=rev
Log:
    PR ada/54040
    PR ada/59346
    * s-osinte-hpux.ads (timespec): Change type of tv_nsec field to time_t.
    * s-osinte-kfreebsd-gnu.ads (timespec): Likewise.
    * s-osinte-solaris-posix.ads (timespec): Likewise.

Modified:
    trunk/gcc/ada/ChangeLog
    trunk/gcc/ada/s-osinte-hpux.ads
    trunk/gcc/ada/s-osinte-kfreebsd-gnu.ads
    trunk/gcc/ada/s-osinte-solaris-posix.ads


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

* [Bug ada/59346] [4.9 Regression] s-osinte.adb:107:35: expected type "Interfaces.C.long"
  2013-11-29 15:20 [Bug ada/59346] New: [4.9 Regression] s-osinte.adb:107:35: expected type "Interfaces.C.long" danglin at gcc dot gnu.org
  2013-11-29 16:05 ` [Bug ada/59346] " ebotcazou at gcc dot gnu.org
  2013-11-29 16:19 ` ebotcazou at gcc dot gnu.org
@ 2013-11-29 16:20 ` ebotcazou at gcc dot gnu.org
  2014-04-09 14:55 ` ebotcazou at gcc dot gnu.org
  2014-04-09 23:19 ` ebotcazou at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2013-11-29 16:20 UTC (permalink / raw)
  To: gcc-bugs

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

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |4.9.0

--- Comment #3 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Blindly fixed, so please verify.


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

* [Bug ada/59346] [4.9 Regression] s-osinte.adb:107:35: expected type "Interfaces.C.long"
  2013-11-29 15:20 [Bug ada/59346] New: [4.9 Regression] s-osinte.adb:107:35: expected type "Interfaces.C.long" danglin at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2013-11-29 16:20 ` ebotcazou at gcc dot gnu.org
@ 2014-04-09 14:55 ` ebotcazou at gcc dot gnu.org
  2014-04-09 23:19 ` ebotcazou at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2014-04-09 14:55 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Author: ebotcazou
Date: Wed Apr  9 14:54:29 2014
New Revision: 209244

URL: http://gcc.gnu.org/viewcvs?rev=209244&root=gcc&view=rev
Log:
    PR ada/54040
    PR ada/59346
    * s-osinte-x32.adb: New file.
    * s-linux.ads (Time): New section.
    * s-linux-alpha.ads (Time): Likewise.
    * s-linux-android.ads (Time: Likewise.
    * s-linux-hppa.ads (Time): Likewise.
    * s-linux-mipsel.ads (Time): Likewise.
    * s-linux-sparc.ads (Time): Likewise.
    * s-linux-x32.ads (Time): Likewise.
    * s-osprim-x32.ads (timespec): Adjust.
    * s-osinte-linux.ads (Time): Define local subtypes for those defined
    in System.Linux.
    * s-taprop-linux.adb (Monotonic_Clock): Do not define timeval.
    * s-osinte-hpux.ads (timespec): Revert POSIX breakage.
    * s-osinte-kfreebsd-gnu.ads (timespec): Likewise.
    * s-osinte-solaris-posix.ads (timespec): Likewise.
    * s-osinte-posix.adb (To_Timespec): Likewise.
    * gcc-interface/Makefile.in (x32/Linux): Use s-osinte-x32.adb.

Added:
    trunk/gcc/ada/s-osinte-x32.adb
Modified:
    trunk/gcc/ada/ChangeLog
    trunk/gcc/ada/gcc-interface/Makefile.in
    trunk/gcc/ada/s-linux-alpha.ads
    trunk/gcc/ada/s-linux-android.ads
    trunk/gcc/ada/s-linux-hppa.ads
    trunk/gcc/ada/s-linux-mipsel.ads
    trunk/gcc/ada/s-linux-sparc.ads
    trunk/gcc/ada/s-linux-x32.ads
    trunk/gcc/ada/s-linux.ads
    trunk/gcc/ada/s-osinte-hpux.ads
    trunk/gcc/ada/s-osinte-kfreebsd-gnu.ads
    trunk/gcc/ada/s-osinte-linux.ads
    trunk/gcc/ada/s-osinte-posix.adb
    trunk/gcc/ada/s-osinte-solaris-posix.ads
    trunk/gcc/ada/s-osprim-x32.adb
    trunk/gcc/ada/s-taprop-linux.adb


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

* [Bug ada/59346] [4.9 Regression] s-osinte.adb:107:35: expected type "Interfaces.C.long"
  2013-11-29 15:20 [Bug ada/59346] New: [4.9 Regression] s-osinte.adb:107:35: expected type "Interfaces.C.long" danglin at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2014-04-09 14:55 ` ebotcazou at gcc dot gnu.org
@ 2014-04-09 23:19 ` ebotcazou at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2014-04-09 23:19 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Author: ebotcazou
Date: Wed Apr  9 23:18:28 2014
New Revision: 209257

URL: http://gcc.gnu.org/viewcvs?rev=209257&root=gcc&view=rev
Log:
    PR ada/54040
    PR ada/59346
    * s-osinte-x32.adb (To_Timespec): Add use directive.
    * s-osprim-x32.ads (Clock): Adjust.
    (To_Timespec): Likewise.

Modified:
    trunk/gcc/ada/ChangeLog
    trunk/gcc/ada/s-osinte-x32.adb
    trunk/gcc/ada/s-osprim-x32.adb


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

end of thread, other threads:[~2014-04-09 23:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-29 15:20 [Bug ada/59346] New: [4.9 Regression] s-osinte.adb:107:35: expected type "Interfaces.C.long" danglin at gcc dot gnu.org
2013-11-29 16:05 ` [Bug ada/59346] " ebotcazou at gcc dot gnu.org
2013-11-29 16:19 ` ebotcazou at gcc dot gnu.org
2013-11-29 16:20 ` ebotcazou at gcc dot gnu.org
2014-04-09 14:55 ` ebotcazou at gcc dot gnu.org
2014-04-09 23:19 ` ebotcazou at gcc dot gnu.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).