Bug 41607 - Cannot build LTO without stdint.h
Summary: Cannot build LTO without stdint.h
Status: RESOLVED DUPLICATE of bug 40790
Alias: None
Product: gcc
Classification: Unclassified
Component: lto (show other bugs)
Version: 4.5.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: build, lto
Depends on:
Blocks:
 
Reported: 2009-10-06 15:53 UTC by Steve Ellcey
Modified: 2009-10-06 16:32 UTC (History)
3 users (show)

See Also:
Host: hppa*-hp-hpux*
Target: hppa*-hp-hpux*
Build: hppa*-hp-hpux*
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Ellcey 2009-10-06 15:53:03 UTC
After the LTO merge GCC will not bootstrap on HPPA HP-UX because this system does not have stdint.h and this header is included unconditionally in lto-streamer.h. 

This header file was not a requirement for building before the merge.  We should either document this requirement, remove the requirement, or allow platforms to turn off the LTO part of the build by default if they cannot meet this requirement.  I am not sure which approach we want to take.
Comment 1 jsm-csl@polyomino.org.uk 2009-10-06 15:59:18 UTC
Subject: Re:   New: Cannot build LTO without stdint.h

On Tue, 6 Oct 2009, sje at cup dot hp dot com wrote:

> After the LTO merge GCC will not bootstrap on HPPA HP-UX because this system
> does not have stdint.h and this header is included unconditionally in
> lto-streamer.h. 

Via plugin-api.h - I didn't notice this as a problem because:

- it was included in the plugin patch not the streamer patch;

- I knew the plugin was non-portable anyway so didn't look for portability 
issues in it;

- gcc/configure.ac uses GCC_STDINT_TYPES so the use of these *types* in 
LTO source files isn't a problem; only requiring <stdint.h> rather than a 
possible replacement is the problem.

Comment 2 Richard Biener 2009-10-06 16:15:36 UTC
I can't see the inclusion of stdint.h in lto-streamer.h.
Comment 3 Steve Ellcey 2009-10-06 16:22:43 UTC
See Josephs comment (#1), it actually includes plugin-api.h and that includes stdint.h.
Comment 4 Andrew Pinski 2009-10-06 16:32:14 UTC
then this is a dup of bug 40790.

*** This bug has been marked as a duplicate of 40790 ***