------- Comment #11 from pinskia at gcc dot gnu dot org  2007-06-25 17:12 
-------
The standard is clear that long long is fully supported by freestanding
programs which means that the implementation needs to support it. GCC supports
it by providing libgcc.a support library.

4/6:
The two forms of conforming implementation are hosted and freestanding. A
conforming
hosted implementation shall accept any strictly conforming program. A
conforming
freestanding implementation shall accept any strictly conforming program that
does not
use complex types and in which the use of the features specified in the library
clause
(clause 7) is confined to the contents of the standard headers <float.h>,
<iso646.h>, <limits.h>, <stdarg.h>, <stdbool.h>, <stddef.h>, and
<stdint.h>. A conforming implementation may have extensions (including
additional
library functions), provided they do not alter the behavior of any strictly
conforming
program

5.1.2.1/1:
In a freestanding environment (in which C program execution may take place
without any
benefit of an operating system), the name and type of the function called at
program
startup are implementation-defined. Any library facilities available to a
freestanding
program, other than the minimal set required by clause 4, are
implementation-defined.

So GCC is doing the correct thing and I just read the standard.


-- 

pinskia at gcc dot gnu dot org changed:

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


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

Reply via email to