public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/97805] New: adaint.c:1488:12: note: 'LLONG_MIN' is defined in header '<cli mits>'; did you forget to '#include <climits>'?
@ 2020-11-12  0:10 danglin at gcc dot gnu.org
  2020-11-13 12:36 ` [Bug ada/97805] [11 Regression] " ebotcazou at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: danglin at gcc dot gnu.org @ 2020-11-12  0:10 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97805

            Bug ID: 97805
           Summary: adaint.c:1488:12: note: 'LLONG_MIN' is defined in
                    header '<cli mits>'; did you forget to '#include
                    <climits>'?
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
          Assignee: unassigned at gcc dot gnu.org
          Reporter: danglin at gcc dot gnu.org
  Target Milestone: ---
              Host: hppa2.0w-hp-hpux11.11
            Target: hppa2.0w-hp-hpux11.11
             Build: hppa2.0w-hp-hpux11.11

g++ -std=c++11  -fno-PIE -c  -DIN_GCC_FRONTEND -g -DIN_GCC     -fno-exceptions
-
fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-W
cast-qual -Wno-format -mdisable-indexing -Wmissing-format-attribute
-Woverloaded
-virtual -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings
-fno-common
  -DHAVE_CONFIG_H -I. -Iada -I../../gcc/gcc -I../../gcc/gcc/ada
-I../../gcc/gcc/
../include -I../../gcc/gcc/../libcpp/include -I/opt/gnu/gcc/gmp/include 
-I../..
/gcc/gcc/../libdecnumber -I../../gcc/gcc/../libdecnumber/dpd -I../libdecnumber
-
I../../gcc/gcc/../libbacktrace   -o ada/argv.o -MT ada/argv.o -MMD -MP -MF
ada/.
deps/argv.TPo ../../gcc/gcc/ada/argv.c
../../gcc/gcc/ada/adaint.c: In function 'long long int
__gnat_file_time(char*)':
../../gcc/gcc/ada/adaint.c:1488:12: error: 'LLONG_MIN' was not declared in this
scope
     return LLONG_MIN;
            ^~~~~~~~~
../../gcc/gcc/ada/adaint.c:1488:12: note: 'LLONG_MIN' is defined in header
'<cli
mits>'; did you forget to '#include <climits>'?
../../gcc/gcc/ada/adaint.c:239:1:
+#include <climits>

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

* [Bug ada/97805] [11 Regression] adaint.c:1488:12: note: 'LLONG_MIN' is defined in header '<cli mits>'; did you forget to '#include <climits>'?
  2020-11-12  0:10 [Bug ada/97805] New: adaint.c:1488:12: note: 'LLONG_MIN' is defined in header '<cli mits>'; did you forget to '#include <climits>'? danglin at gcc dot gnu.org
@ 2020-11-13 12:36 ` ebotcazou at gcc dot gnu.org
  2020-11-13 12:39 ` ebotcazou at gcc dot gnu.org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2020-11-13 12:36 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97805

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2020-11-13
                 CC|                            |ebotcazou at gcc dot gnu.org
     Ever confirmed|0                           |1
   Target Milestone|---                         |11.0

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

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

* [Bug ada/97805] [11 Regression] adaint.c:1488:12: note: 'LLONG_MIN' is defined in header '<cli mits>'; did you forget to '#include <climits>'?
  2020-11-12  0:10 [Bug ada/97805] New: adaint.c:1488:12: note: 'LLONG_MIN' is defined in header '<cli mits>'; did you forget to '#include <climits>'? danglin at gcc dot gnu.org
  2020-11-13 12:36 ` [Bug ada/97805] [11 Regression] " ebotcazou at gcc dot gnu.org
@ 2020-11-13 12:39 ` ebotcazou at gcc dot gnu.org
  2020-11-13 16:04 ` dave.anglin at bell dot net
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2020-11-13 12:39 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97805

--- Comment #2 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Created attachment 49555
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49555&action=edit
Tentative fix

Please give it a try when you get a chance.

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

* [Bug ada/97805] [11 Regression] adaint.c:1488:12: note: 'LLONG_MIN' is defined in header '<cli mits>'; did you forget to '#include <climits>'?
  2020-11-12  0:10 [Bug ada/97805] New: adaint.c:1488:12: note: 'LLONG_MIN' is defined in header '<cli mits>'; did you forget to '#include <climits>'? danglin at gcc dot gnu.org
  2020-11-13 12:36 ` [Bug ada/97805] [11 Regression] " ebotcazou at gcc dot gnu.org
  2020-11-13 12:39 ` ebotcazou at gcc dot gnu.org
@ 2020-11-13 16:04 ` dave.anglin at bell dot net
  2020-11-17  1:10 ` danglin at gcc dot gnu.org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: dave.anglin at bell dot net @ 2020-11-13 16:04 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97805

--- Comment #3 from dave.anglin at bell dot net ---
On 2020-11-13 7:39 a.m., ebotcazou at gcc dot gnu.org wrote:
> Please give it a try when you get a chance.
Will do.

Thanks,
Dave

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

* [Bug ada/97805] [11 Regression] adaint.c:1488:12: note: 'LLONG_MIN' is defined in header '<cli mits>'; did you forget to '#include <climits>'?
  2020-11-12  0:10 [Bug ada/97805] New: adaint.c:1488:12: note: 'LLONG_MIN' is defined in header '<cli mits>'; did you forget to '#include <climits>'? danglin at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2020-11-13 16:04 ` dave.anglin at bell dot net
@ 2020-11-17  1:10 ` danglin at gcc dot gnu.org
  2020-11-17  8:06 ` ebotcazou at gcc dot gnu.org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: danglin at gcc dot gnu.org @ 2020-11-17  1:10 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97805

--- Comment #4 from John David Anglin <danglin at gcc dot gnu.org> ---
We need:

#include <climits>

The define for LLONG_MIN is guarded by __STDC_VERSION__ in glimits.h:

#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
/* Minimum and maximum values a `signed long long int' can hold.  */
# undef LLONG_MIN
# define LLONG_MIN (-LLONG_MAX - 1LL)
# undef LLONG_MAX
# define LLONG_MAX __LONG_LONG_MAX__

/* Maximum value an `unsigned long long int' can hold.  (Minimum is 0).  */
# undef ULLONG_MAX
# define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
#endif

-std=c++11 doesn't appear to define __STDC_VERSION__.

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

* [Bug ada/97805] [11 Regression] adaint.c:1488:12: note: 'LLONG_MIN' is defined in header '<cli mits>'; did you forget to '#include <climits>'?
  2020-11-12  0:10 [Bug ada/97805] New: adaint.c:1488:12: note: 'LLONG_MIN' is defined in header '<cli mits>'; did you forget to '#include <climits>'? danglin at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2020-11-17  1:10 ` danglin at gcc dot gnu.org
@ 2020-11-17  8:06 ` ebotcazou at gcc dot gnu.org
  2020-11-17  8:07 ` ebotcazou at gcc dot gnu.org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2020-11-17  8:06 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97805

--- Comment #5 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> We need:
> 
> #include <climits>

We cannot do that unconditionally because it's also compiled as a C file.

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

* [Bug ada/97805] [11 Regression] adaint.c:1488:12: note: 'LLONG_MIN' is defined in header '<cli mits>'; did you forget to '#include <climits>'?
  2020-11-12  0:10 [Bug ada/97805] New: adaint.c:1488:12: note: 'LLONG_MIN' is defined in header '<cli mits>'; did you forget to '#include <climits>'? danglin at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2020-11-17  8:06 ` ebotcazou at gcc dot gnu.org
@ 2020-11-17  8:07 ` ebotcazou at gcc dot gnu.org
  2020-11-19 14:09 ` danglin at gcc dot gnu.org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2020-11-17  8:07 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97805

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #49555|0                           |1
        is obsolete|                            |

--- Comment #6 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Created attachment 49574
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49574&action=edit
Tentative fix #2

Second try.

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

* [Bug ada/97805] [11 Regression] adaint.c:1488:12: note: 'LLONG_MIN' is defined in header '<cli mits>'; did you forget to '#include <climits>'?
  2020-11-12  0:10 [Bug ada/97805] New: adaint.c:1488:12: note: 'LLONG_MIN' is defined in header '<cli mits>'; did you forget to '#include <climits>'? danglin at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2020-11-17  8:07 ` ebotcazou at gcc dot gnu.org
@ 2020-11-19 14:09 ` danglin at gcc dot gnu.org
  2020-11-19 14:24 ` ebotcazou at gcc dot gnu.org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: danglin at gcc dot gnu.org @ 2020-11-19 14:09 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97805

--- Comment #7 from John David Anglin <danglin at gcc dot gnu.org> ---
Fix #2 works for me.

But then we hit:

/test/gnu/gcc/objdir/./gcc/xgcc -B/test/gnu/gcc/objdir/./gcc/
-B/opt/gnu/gcc/gcc
-11/hppa2.0w-hp-hpux11.11/bin/ -B/opt/gnu/gcc/gcc-11/hppa2.0w-hp-hpux11.11/lib/
-isystem /opt/gnu/gcc/gcc-11/hppa2.0w-hp-hpux11.11/include -isystem
/opt/gnu/gcc
/gcc-11/hppa2.0w-hp-hpux11.11/sys-include   -fchecking=1 -c -g -O2  -fPIC  -W
-W
all -gnatpg -nostdinc   a-nallfl.ads -o a-nallfl.o
a-nallfl.ads:48:13: warning: intrinsic binding type mismatch on return value
a-nallfl.ads:48:13: warning: intrinsic binding type mismatch on argument 1
a-nallfl.ads:48:13: warning: profile of "Sin" doesn't match the builtin it
binds
a-nallfl.ads:51:13: warning: intrinsic binding type mismatch on return value
a-nallfl.ads:51:13: warning: intrinsic binding type mismatch on argument 1
a-nallfl.ads:51:13: warning: profile of "Cos" doesn't match the builtin it
binds
a-nallfl.ads:54:13: warning: intrinsic binding type mismatch on return value
a-nallfl.ads:54:13: warning: intrinsic binding type mismatch on argument 1
a-nallfl.ads:54:13: warning: profile of "Tan" doesn't match the builtin it
binds
a-nallfl.ads:57:13: warning: intrinsic binding type mismatch on return value
a-nallfl.ads:57:13: warning: intrinsic binding type mismatch on argument 1
a-nallfl.ads:57:13: warning: profile of "Exp" doesn't match the builtin it
binds
a-nallfl.ads:60:13: warning: intrinsic binding type mismatch on return value
a-nallfl.ads:60:13: warning: intrinsic binding type mismatch on argument 1
a-nallfl.ads:60:13: warning: profile of "Sqrt" doesn't match the builtin it
binds
a-nallfl.ads:63:13: warning: intrinsic binding type mismatch on return value
a-nallfl.ads:63:13: warning: intrinsic binding type mismatch on argument 1
a-nallfl.ads:63:13: warning: profile of "Log" doesn't match the builtin it
binds
a-nallfl.ads:66:13: warning: intrinsic binding type mismatch on return value
a-nallfl.ads:66:13: warning: intrinsic binding type mismatch on argument 1
a-nallfl.ads:66:13: warning: profile of "Acos" doesn't match the builtin it
binds
a-nallfl.ads:69:13: warning: intrinsic binding type mismatch on return value
a-nallfl.ads:69:13: warning: intrinsic binding type mismatch on argument 1
a-nallfl.ads:69:13: warning: profile of "Asin" doesn't match the builtin it
binds
a-nallfl.ads:72:13: warning: intrinsic binding type mismatch on return value
a-nallfl.ads:72:13: warning: intrinsic binding type mismatch on argument 1
a-nallfl.ads:72:13: warning: profile of "Atan" doesn't match the builtin it
binds
a-nallfl.ads:75:13: warning: intrinsic binding type mismatch on return value
a-nallfl.ads:75:13: warning: intrinsic binding type mismatch on argument 1
a-nallfl.ads:75:13: warning: profile of "Sinh" doesn't match the builtin it
binds
a-nallfl.ads:78:13: warning: intrinsic binding type mismatch on return value
a-nallfl.ads:78:13: warning: intrinsic binding type mismatch on argument 1
a-nallfl.ads:78:13: warning: profile of "Cosh" doesn't match the builtin it
binds
a-nallfl.ads:81:13: warning: intrinsic binding type mismatch on return value
a-nallfl.ads:81:13: warning: intrinsic binding type mismatch on argument 1
a-nallfl.ads:81:13: warning: profile of "Tanh" doesn't match the builtin it
binds
a-nallfl.ads:84:13: warning: intrinsic binding type mismatch on return value
a-nallfl.ads:84:13: warning: intrinsic binding type mismatch on argument 1
a-nallfl.ads:84:13: warning: profile of "Pow" doesn't match the builtin it
binds
make[7]: *** [../gcc-interface/Makefile:302: a-nallfl.o] Error 1
make[7]: Leaving directory '/test/gnu/gcc/objdir/gcc/ada/rts'
make[6]: *** [gcc-interface/Makefile:620: gnatlib] Error 2

Probably, should be new PR.

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

* [Bug ada/97805] [11 Regression] adaint.c:1488:12: note: 'LLONG_MIN' is defined in header '<cli mits>'; did you forget to '#include <climits>'?
  2020-11-12  0:10 [Bug ada/97805] New: adaint.c:1488:12: note: 'LLONG_MIN' is defined in header '<cli mits>'; did you forget to '#include <climits>'? danglin at gcc dot gnu.org
                   ` (6 preceding siblings ...)
  2020-11-19 14:09 ` danglin at gcc dot gnu.org
@ 2020-11-19 14:24 ` ebotcazou at gcc dot gnu.org
  2020-11-19 15:41 ` cvs-commit at gcc dot gnu.org
  2020-11-19 15:42 ` ebotcazou at gcc dot gnu.org
  9 siblings, 0 replies; 11+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2020-11-19 14:24 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97805

--- Comment #8 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> Fix #2 works for me.

OK, thanks.

> Probably, should be new PR.

Nope, it's PR ada/97504, please follow up there.

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

* [Bug ada/97805] [11 Regression] adaint.c:1488:12: note: 'LLONG_MIN' is defined in header '<cli mits>'; did you forget to '#include <climits>'?
  2020-11-12  0:10 [Bug ada/97805] New: adaint.c:1488:12: note: 'LLONG_MIN' is defined in header '<cli mits>'; did you forget to '#include <climits>'? danglin at gcc dot gnu.org
                   ` (7 preceding siblings ...)
  2020-11-19 14:24 ` ebotcazou at gcc dot gnu.org
@ 2020-11-19 15:41 ` cvs-commit at gcc dot gnu.org
  2020-11-19 15:42 ` ebotcazou at gcc dot gnu.org
  9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-11-19 15:41 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97805

--- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Eric Botcazou <ebotcazou@gcc.gnu.org>:

https://gcc.gnu.org/g:2729378d0905a04e476a8bdcaaf0288f417810ec

commit r11-5170-g2729378d0905a04e476a8bdcaaf0288f417810ec
Author: Eric Botcazou <ebotcazou@adacore.com>
Date:   Thu Nov 19 16:39:34 2020 +0100

    Fix PR ada/97805

    We need to include limits.h (or <climits>) in adaint.c because of
LLONG_MIN.

    gcc/ada/ChangeLog:
            PR ada/97805
            * adaint.c: Include climits in C++ and limits.h otherwise.

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

* [Bug ada/97805] [11 Regression] adaint.c:1488:12: note: 'LLONG_MIN' is defined in header '<cli mits>'; did you forget to '#include <climits>'?
  2020-11-12  0:10 [Bug ada/97805] New: adaint.c:1488:12: note: 'LLONG_MIN' is defined in header '<cli mits>'; did you forget to '#include <climits>'? danglin at gcc dot gnu.org
                   ` (8 preceding siblings ...)
  2020-11-19 15:41 ` cvs-commit at gcc dot gnu.org
@ 2020-11-19 15:42 ` ebotcazou at gcc dot gnu.org
  9 siblings, 0 replies; 11+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2020-11-19 15:42 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97805

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

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

--- Comment #10 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Thanks for reporting the problem.

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

end of thread, other threads:[~2020-11-19 15:42 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-12  0:10 [Bug ada/97805] New: adaint.c:1488:12: note: 'LLONG_MIN' is defined in header '<cli mits>'; did you forget to '#include <climits>'? danglin at gcc dot gnu.org
2020-11-13 12:36 ` [Bug ada/97805] [11 Regression] " ebotcazou at gcc dot gnu.org
2020-11-13 12:39 ` ebotcazou at gcc dot gnu.org
2020-11-13 16:04 ` dave.anglin at bell dot net
2020-11-17  1:10 ` danglin at gcc dot gnu.org
2020-11-17  8:06 ` ebotcazou at gcc dot gnu.org
2020-11-17  8:07 ` ebotcazou at gcc dot gnu.org
2020-11-19 14:09 ` danglin at gcc dot gnu.org
2020-11-19 14:24 ` ebotcazou at gcc dot gnu.org
2020-11-19 15:41 ` cvs-commit at gcc dot gnu.org
2020-11-19 15:42 ` 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).