From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by sourceware.org (Postfix) with ESMTPS id 4EA713858C24 for ; Fri, 5 Apr 2024 04:58:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4EA713858C24 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 4EA713858C24 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::12e ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712293110; cv=none; b=qCHLa7wz2RwnUqYAoiCgq53evJwJDK4vvndJQVZkWBu/uaowzr99AqDMIPoRk34RdQc+gaQ6ivvyCCmRJ00tPwTriRJ0FZarZjNzfN3HygyWHdYsqZZNcZ7UY0FYlHY7JzJ+wulTQAPK29+agJ3v3TldqIPMXk7iIahQcXSxCGc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712293110; c=relaxed/simple; bh=5s3ZnsjP8YymxOIqOjhDBnsXal/9vt8Tqeh75mIBvQo=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=tVUcvpo/qBoqzp06h/dkHkxflXpL8W/1QryT09HQWFE8Ojq9zSUSjFhw0o57y4PuAbiJOLZkBiRor5OxakYkEx9uK6dTQFE39MJg793z/CP4oZzYtEnjx8ogj6mpCqXxu8An5smitSXyvfp4cPTnNXSzXeMRdGE8lx8OxjKqRvI= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-516d487659bso305737e87.2 for ; Thu, 04 Apr 2024 21:58:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712293106; x=1712897906; darn=gcc.gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=5s3ZnsjP8YymxOIqOjhDBnsXal/9vt8Tqeh75mIBvQo=; b=Rj+lTAFUce8Y0lYIeFq9vK2S428u/8sfKIc+QnUz3riNFZCPYfJyMYZaB5N8WKTBr0 pWkKO6shvMel/NJLM/TJQ2LGdbplDwSdiyAZ8qdG3l+sd5c4vQr+Ofo1t2XxMDFOyeEU IzIyqDoRqoDUKl7B1rxJixfusC1rUQWbzNx0+kEAdYWJNn2WQVVqq4NLD7JKF4bgJvCD d13MCcEaNGZOAcmC0oI4PMn72ZSAGnZiokZWY9cEqFtiWZxFAi5RfzDWa00OXfINjWih AcesdVLl1fzj7LnZeB3bvQRAnGBgRn3USopEMqO+ajqWUL/3D1XiR3whVifzN5b86Jfl fPvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712293106; x=1712897906; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=5s3ZnsjP8YymxOIqOjhDBnsXal/9vt8Tqeh75mIBvQo=; b=XKSzCZ8qkJHK8iP5NenuR6KDdA1F4lSiqxGRpvLeIBhzpj1Bb763di7Q8i1CdD4dTI n+Z5laQP+V0CIBDpVoygK96tRBv5IMQYMYPl39ZOA1jefDNt4hiu/9ka9JfAV8CmhemY MbWgnZSAto4uXYG1X6W8xtxIxcbOPbC8dA1FPQlHLVT3nMdRYhXzZXMw3XOT1WfyCVZS 3Fq7e5PlP/aRGpoQ4dKqaXwI1kWB3gP78ydWAu03Vt+KsrSq3+LcJbJ1OdzE4M1n1WOn fenY8nZJCm1XAiY/N7zFqoYo1uP7mTmO5WWKPwaZqrdGZey6jpImbguU7BbUpPkYoee6 A/kw== X-Gm-Message-State: AOJu0YzjhjAxS4R4+HNpfsJAux8L5cJ5+opNrdrgIR3H87vB9BFj+oAx hOTNYauDEnTKmNz60/Ow5ElDt2hL8s7X3ItoSYewQxuqrLi6Y1ALDlRRsPZUkX/Lt9ykren2NP6 1zgTKzAgBp5oy7u5bbrxZksn1Hoh0tmx+jW5dWQ== X-Google-Smtp-Source: AGHT+IGTa46IkwUxd03fN1dGjrr2L8VSnUfSpi8fwDg3usTNKga/w5NRc3UX3FxCyx1jhoXl6SPjSVHSl0EJKNVGneE= X-Received: by 2002:ac2:5462:0:b0:516:a0a2:ba1b with SMTP id e2-20020ac25462000000b00516a0a2ba1bmr164818lfn.47.1712293106098; Thu, 04 Apr 2024 21:58:26 -0700 (PDT) MIME-Version: 1.0 From: Dan Date: Fri, 5 Apr 2024 09:58:15 +0500 Message-ID: Subject: Modifying GCC source code To: gcc@gcc.gnu.org Content-Type: multipart/alternative; boundary="000000000000572dc00615524ee2" X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --000000000000572dc00615524ee2 Content-Type: text/plain; charset="UTF-8" Hello! I am trying to slightly modify the source code of GCC to display some messages when the compiler is executed in the terminal. For example, when 'gcc source.c' is executed, I want a print message saying "Building with GCC..." and if the build is successful, "Build Successful!" should be displayed otherwise "Build Failed!" should be displayed. I have tried adding the print statements in the driver code file (gcc.cc) but haven't had any success. Adding the print statement in driver::main function breaks everything and the code doesn't even build. I have tried adding the print statements in all the major methods in the driver code such as, driver::execute, driver::finalize, driver::init_spec, driver::main, etc but the result that I get is that either the code breaks while building the GCC from source, or it builds successfully but the print statements do not get displayed. I'm uncertain how to proceed. Any guidance on how to begin and what files or functions I need to check out would be greatly appreciated. Thanks in advance! --000000000000572dc00615524ee2--