/[autoconf]/autoconf/doc/autoconf.texi
ViewVC logotype

Diff of /autoconf/doc/autoconf.texi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.582 by akim, Tue Feb 5 08:27:53 2002 UTC revision 1.583 by eggert, Tue Feb 5 22:56:16 2002 UTC
# Line 4646  bytes long: Line 4646  bytes long:
4646  int  int
4647  main (void)  main (void)
4648  @{  @{
4649    static int test_array [(unsigned long) (sizeof (int)) == 4 ? 1 : -1];    static int test_array [sizeof (int) == 4 ? 1 : -1];
4650    test_array [0] = 0    test_array [0] = 0
4651    return 0;    return 0;
4652  @}  @}
# Line 4662  $ @kbd{cc -c -Ae +O2 +Onolimit conftest. Line 4662  $ @kbd{cc -c -Ae +O2 +Onolimit conftest.
4662  cc: "conftest.c": error 1879: Variable-length arrays cannot \  cc: "conftest.c": error 1879: Variable-length arrays cannot \
4663      have static storage.      have static storage.
4664  @end example  @end example
4665    
4666    Autoconf works around this problem by casting @code{sizeof (int)} to
4667    @code{long} before comparing it.
4668  @end table  @end table
4669    
4670  @node Generic Compiler Characteristics  @node Generic Compiler Characteristics

Legend:
Removed from v.1.582  
changed lines
  Added in v.1.583

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26