Skip to content

Compile error on old gcc #12124

@dfandrich

Description

@dfandrich

I did this

Compiling on FreeBSD 6.2 on gcc 3.4.6 (from over 16 years ago) gives this error:

tool_urlglob.c:77 error: implicit declaration of function `__builtin_mul_overflow'

Presumably, this was added to gcc some time between 3.4 and 6 and the #ifdef needs to check the gcc version. Since we're supporting C89, one can't complain that this is too old a compiler.

I expected the following

This old compiler should work (and after fixing the above, it does).

curl/libcurl version

curl 8.4.0-dev

operating system

FreeBSD 6.2 i386

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions