[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: coreutils 7.1.49-ebb9 FTB risc/HP-UX
From: |
Matthew Woehlke |
Subject: |
Re: coreutils 7.1.49-ebb9 FTB risc/HP-UX |
Date: |
Thu, 19 Mar 2009 11:36:41 -0500 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.19) Gecko/20090105 Fedora/2.0.0.19-1.fc10 Thunderbird/2.0.0.19 Mnenhy/0.7.5.0 |
Jim Meyering wrote:
It's saying that with its default settings, the post-cpp-expansion of
this code is too large:
[snip]
I know what the problem is; as I was saying, I didn't find a way to get
past this type of error except "don't do that", i.e. break down what cpp
is seeing into manageable bites.
How about the attached work-around (obviously '#if 1' should be changed
to something more like '#if using-the-hp-ux-cc-compiler')?
(Build succeeds with this, using HP-UX's cc. I'll post the test results
when the suite is done.)
--
Matthew
Please do not quote my e-mail address unobfuscated in message bodies.
--
"Two IIRC's must make a right" -- Larry Hall (paraphrased)
--- ../../sun4_solaris/coreutils-7.1.63-8e6a6/src/dd.c 2009-03-18
10:49:51.000000000 -0800
+++ src/dd.c 2009-03-19 08:27:23.242175000 -0800
@@ -265,6 +265,24 @@
enum
{
+#if 1
+ /* Use a value that is larger than that of any other O_ symbol. */
+ /* HP-UX CC has a limit on macro size; must work around this */
+ O_DO_NOT_USE_THIS_1 = (MAX (O_APPEND,
+ MAX (O_BINARY,
+ MAX (O_CIO,
+ MAX (O_DIRECT,
+ MAX (O_DIRECTORY,
+ MAX (O_DSYNC, 0))))))),
+ O_DO_NOT_USE_THIS_2 = (MAX (O_NOATIME,
+ MAX (O_NOCTTY,
+ MAX (O_NOFOLLOW,
+ MAX (O_NOLINKS,
+ MAX (O_NONBLOCK,
+ MAX (O_SYNC,
+ MAX (O_TEXT, 0)))))))),
+ O_FULLBLOCK = ((MAX (O_DO_NOT_USE_THIS_1, O_DO_NOT_USE_THIS_2)) << 1)
+#else
/* Use a value that is larger than that of any other O_ symbol. */
O_FULLBLOCK = ((MAX (O_APPEND,
MAX (O_BINARY,
@@ -279,6 +297,7 @@
MAX (O_NONBLOCK,
MAX (O_SYNC,
MAX (O_TEXT, 0)))))))))))))) << 1)
+#endif
};
/* Ensure that we didn't shift it off the end. */
- Re: coreutils 7.1.49-ebb9 FTB risc/HP-UX, (continued)
- Re: coreutils 7.1.49-ebb9 FTB risc/HP-UX, Matthew Woehlke, 2009/03/19
- Re: coreutils 7.1.49-ebb9 FTB risc/HP-UX, Jim Meyering, 2009/03/19
- Re: coreutils 7.1.49-ebb9 FTB risc/HP-UX, Matthew Woehlke, 2009/03/19
- Re: coreutils 7.1.49-ebb9 FTB risc/HP-UX, Jim Meyering, 2009/03/19
- Re: coreutils 7.1.49-ebb9 FTB risc/HP-UX, Jim Meyering, 2009/03/19
- Re: coreutils 7.1.49-ebb9 FTB risc/HP-UX, Matthew Woehlke, 2009/03/19
- Re: coreutils 7.1.49-ebb9 FTB risc/HP-UX, Eric Blake, 2009/03/20
- Re: coreutils 7.1.49-ebb9 FTB risc/HP-UX, Jim Meyering, 2009/03/20
- Re: coreutils 7.1.49-ebb9 FTB risc/HP-UX, Eric Blake, 2009/03/20
- Re: coreutils 7.1.49-ebb9 FTB risc/HP-UX, Jim Meyering, 2009/03/20
Re: coreutils 7.1.49-ebb9 FTB risc/HP-UX,
Matthew Woehlke <=