This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Further cleanup loop-distribution


On Jul 30, 2014, at 12:59 AM, Richard Biener <richard.guenther@gmail.com> wrote:
>> So I do compiler testing on my toaster oven by doing native builds of gcc running on a binutils simulator and it doesn’t have a working popen (it’s in my newlib, but it wants vfork, which I don’t have).  I do have fork and system however.  :-) Could we replace the if 1 with if HAVE_popen where that is done by an autoconf link test?
> 
> Sure - patches welcome.  You could also use _POSIX_C_SOURCE >= 2
> || _XOPEN_SOURCE || _BSD_SOURCE || _SVID_SOURCE which I'm sure
> your newlib provide anyway(?)

Autoconf trivially solves the problem.  :-)  Thanks.

Committed revision 213309.

2014-07-30  Mike Stump  <mikestump@comcast.net>

	* configure.ac: Also check for popen.
	* tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
	* configure: Regenerate.
	* config.in:  Regenerate.

Attachment: popen.diffs.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]